summaryrefslogtreecommitdiffstats
path: root/src/test/ui/traits/bound/not-on-bare-trait.rs
blob: daf18c6702e4695066197af2257326425389af72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
trait Foo {
    fn dummy(&self) {}
}

// This should emit the less confusing error, not the more confusing one.

fn foo(_x: Foo + Send) {
    //~^ ERROR the size for values of type
    //~| WARN trait objects without an explicit `dyn` are deprecated
    //~| WARN this is accepted in the current edition
}

fn main() {}