about summary refs log tree commit diff
path: root/tests/ui/malformed/do-not-ice-on-note_and_explain.rs
blob: be0b18a00d28f9cee771386f7d8ccec28065441f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
struct A<B>(B);

impl<B> A<B> {
    fn d() {
        fn d() {
            Self(1)
            //~^ ERROR can't reference `Self` constructor from outer item
        }
    }
}

fn main() {}