mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
13 lines
188 B
Rust
13 lines
188 B
Rust
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() {}
|