summary refs log tree commit diff
path: root/src/test/ui/issues/issue-3214.rs
blob: 85eae2686e6a98611e21d5d5936e617825479368 (plain)
1
2
3
4
5
6
7
8
9
10
11
fn foo<T>() {
    struct Foo {
        x: T, //~ ERROR can't use type parameters from outer function
    }

    impl<T> Drop for Foo<T> {
        //~^ ERROR wrong number of type arguments
        fn drop(&mut self) {}
    }
}
fn main() { }