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 13:46:13 -05:00
#![allow(bare_trait_objects)]
2016-06-01 09:30:13 -05:00
trait Foo {}
struct Bar<'a> {
2017-11-20 06:13:27 -06: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 09:30:13 -05:00
}
fn main() {
}