]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-18423.rs
Auto merge of #86860 - fee1-dead:stabilize, r=LeSeulArtichaut
[rust.git] / src / test / 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() { }