]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/trait-or-new-type-instead.rs
Merge commit 'b40ea209e7f14c8193ddfc98143967b6a2f4f5c9' into clippyup
[rust.git] / src / test / ui / traits / trait-or-new-type-instead.rs
1 impl<T> Option<T> {
2 //~^ ERROR cannot define inherent `impl` for a type outside of the crate where the type is defined
3     pub fn foo(&self) { }
4 }
5
6 fn main() { }