blob: d166499f88412f0d49beffe9daa2562abd4bcea3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
struct S0<T>(T);
impl<T> S0<T> {
fn foo() {
const C: S0<i32> = Self(0);
//~^ ERROR can't reference `Self` constructor from outer item
fn bar() -> S0<i32> {
Self(0)
//~^ ERROR can't reference `Self` constructor from outer item
}
}
}
fn main() {}
|