]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-18423.rs
Rollup merge of #107152 - GuillaumeGomez:migrate-to-css-var, r=notriddle
[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() { }