rust/tests/ui/did_you_mean/E0178.rs
2023-01-11 09:32:08 +00:00

14 lines
277 B
Rust

#![allow(bare_trait_objects)]
trait Foo {}
struct Bar<'a> {
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
}
fn main() {
}