mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
5f5b4ee128
This reverts commit31fe9628cf
, reversing changes made tof20307851e
.
20 lines
359 B
Rust
20 lines
359 B
Rust
//@ run-rustfix
|
|
|
|
struct S<T>(T);
|
|
struct S2;
|
|
|
|
impl<T: Default> Default for S<T> {
|
|
//~^ ERROR: unexpected `impl` keyword
|
|
//~| HELP: remove the extra `impl`
|
|
fn default() -> Self { todo!() }
|
|
}
|
|
|
|
impl Default for S2 {
|
|
//~^ ERROR: unexpected `impl` keyword
|
|
//~| HELP: remove the extra `impl`
|
|
fn default() -> Self { todo!() }
|
|
}
|
|
|
|
|
|
fn main() {}
|