rust/tests/ui/did_you_mean/E0178.rs

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

14 lines
277 B
Rust
Raw Normal View History

2019-05-28 18:46:13 +00:00
#![allow(bare_trait_objects)]
2016-06-01 14:30:13 +00:00
trait Foo {}
struct Bar<'a> {
2017-11-20 12:13:27 +00:00
w: &'a Foo + Copy, //~ ERROR expected a path
x: &'a Foo + 'a, //~ ERROR expected a path
y: &'a mut Foo + 'a, //~ ERROR expected a path
z: fn() -> Foo + 'a, //~ ERROR expected a path
2016-06-01 14:30:13 +00:00
}
fn main() {
}