summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/resolve-unknown-trait.rs
blob: 290893bbbec40df1382360372391985fd2a96a47 (plain)
1
2
3
4
5
6
7
8
9
10
trait NewTrait : SomeNonExistentTrait {}
//~^ ERROR cannot find trait `SomeNonExistentTrait` in this scope

impl SomeNonExistentTrait for isize {}
//~^ ERROR cannot find trait `SomeNonExistentTrait` in this scope

fn f<T:SomeNonExistentTrait>() {}
//~^ ERROR cannot find trait `SomeNonExistentTrait` in this scope

fn main() {}