]> git.lizzy.rs Git - rust.git/blob - src/test/ui/orphan-check-diagnostics.rs
Rollup merge of #100192 - tmiasko:rm-duplicated-locals, r=nagisa
[rust.git] / src / test / ui / orphan-check-diagnostics.rs
1 // aux-build:orphan-check-diagnostics.rs
2
3 // See issue #22388.
4
5 extern crate orphan_check_diagnostics;
6
7 use orphan_check_diagnostics::RemoteTrait;
8
9 trait LocalTrait { fn dummy(&self) { } }
10
11 impl<T> RemoteTrait for T where T: LocalTrait {}
12 //~^ ERROR type parameter `T` must be used as the type parameter for some local type
13
14 fn main() {}