mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
9d9b55cd2b
and remove the feature gate that silenced the lint
7 lines
196 B
Rust
7 lines
196 B
Rust
fn avg<T=T::Item>(_: T) {}
|
|
//~^ ERROR generic parameters with a default cannot use forward declared identifiers
|
|
//~| ERROR defaults for type parameters
|
|
//~| WARN previously accepted
|
|
|
|
fn main() {}
|