]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/E0178.rs
Test `expect` with `forbid` and fix doc errors (RFC-2383)
[rust.git] / src / test / ui / did_you_mean / E0178.rs
1 #![allow(bare_trait_objects)]
2
3 trait Foo {}
4
5 struct Bar<'a> {
6     w: &'a Foo + Copy, //~ ERROR expected a path
7     x: &'a Foo + 'a, //~ ERROR expected a path
8     y: &'a mut Foo + 'a, //~ ERROR expected a path
9     z: fn() -> Foo + 'a, //~ ERROR expected a path
10 }
11
12 fn main() {
13 }