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