summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0106.rs
blob: cc3438727a817d7d5ab9edb7d19f4c9fd045ddf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
struct Foo {
    x: &bool,
    //~^ ERROR E0106
}
enum Bar {
    A(u8),
    B(&bool),
   //~^ ERROR E0106
}
type MyStr = &str;
        //~^ ERROR E0106

struct Baz<'a>(&'a str);
struct Buzz<'a, 'b>(&'a str, &'b str);

struct Quux {
    baz: Baz,
    //~^ ERROR E0106
    //~| expected named lifetime parameter
    buzz: Buzz,
    //~^ ERROR E0106
    //~| expected 2 lifetime parameters
}

fn main() {
}