summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-18423.rs
blob: 675fd041154beb6b56b823154f8d39a212c48bdb (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 struct takes 0 lifetime arguments but 1 lifetime argument was supplied
}

fn main() { }