summary refs log tree commit diff
path: root/src/test/ui/parser/trait-bounds-not-on-impl.rs
blob: d77ff80ca2597c0f0b3dbeb961fcbb352e082e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
// compile-flags: -Z continue-parse-after-error

trait Foo {
}

struct Bar;

impl Foo + Owned for Bar { //~ ERROR expected a trait, found type
}

fn main() { }