blob: a81b32f050c3861e48979f6adb0cfb8ce00f46d5 (
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 this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
}
fn main() { }
|