summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/trait-or-new-type-instead.rs
blob: 572b03efce7683e19e41c2cf517617bbb9b11784 (plain)
1
2
3
4
5
6
impl<T> Option<T> {
//~^ ERROR cannot define inherent `impl` for a type outside of the crate where the type is defined
    pub fn foo(&self) { }
}

fn main() { }