Files
rust/tests/ui/error-codes/E0106.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
450 B
Rust
Raw Normal View History

//@ dont-require-annotations: NOTE
2016-05-25 13:58:07 +02:00
struct Foo {
x: &bool,
//~^ ERROR E0106
2016-05-25 13:58:07 +02:00
}
enum Bar {
A(u8),
B(&bool),
//~^ ERROR E0106
2016-05-25 13:58:07 +02:00
}
type MyStr = &str;
//~^ ERROR E0106
2016-05-25 13:58:07 +02:00
struct Baz<'a>(&'a str);
struct Buzz<'a, 'b>(&'a str, &'b str);
struct Quux {
baz: Baz,
//~^ ERROR E0106
//~| NOTE expected named lifetime parameter
buzz: Buzz,
//~^ ERROR E0106
//~| NOTE expected 2 lifetime parameters
}
2016-05-25 13:58:07 +02:00
fn main() {
}