summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/auxiliary/issue-3136-a.rs
blob: 22bb1c8f97709c7d0ab69237caf2cb5290422d33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![crate_type = "lib"]

trait x {
    fn use_x<T>(&self);
}
struct y(());
impl x for y {
    fn use_x<T>(&self) {
        struct foo {
            //~ ERROR quux
            i: (),
        }
        fn new_foo<T>(i: ()) -> foo {
            foo { i: i }
        }
    }
}