summary refs log tree commit diff
path: root/src/test/ui/issues/issue-18423.rs
blob: c072e6b5d22b5ca6adac39b4717d53fd6d20281d (plain)
1
2
3
4
5
6
7
8
// Test that `Box` cannot be used with a lifetime argument.

struct Foo<'a> {
    x: Box<'a, isize> //~ ERROR wrong number of lifetime arguments
}

pub fn main() {
}