summaryrefslogtreecommitdiffstats
path: root/tests/ui/did_you_mean/E0178.rs
blob: 095df640c38f296e3e809e0d7d431a9353385a0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![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() {
}