]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0106.rs
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0106.rs
1 struct Foo {
2     x: &bool,
3     //~^ ERROR E0106
4 }
5 enum Bar {
6     A(u8),
7     B(&bool),
8    //~^ ERROR E0106
9 }
10 type MyStr = &str;
11         //~^ ERROR E0106
12
13 struct Baz<'a>(&'a str);
14 struct Buzz<'a, 'b>(&'a str, &'b str);
15
16 struct Quux {
17     baz: Baz,
18     //~^ ERROR E0106
19     //~| expected named lifetime parameter
20     buzz: Buzz,
21     //~^ ERROR E0106
22     //~| expected 2 lifetime parameters
23 }
24
25 fn main() {
26 }