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

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