]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-18423.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / issues / issue-18423.rs
1 // Test that `Box` cannot be used with a lifetime argument.
2
3 struct Foo<'a> {
4     x: Box<'a, isize>
5     //~^ ERROR this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
6 }
7
8 fn main() { }