rust/tests/ui/issues/issue-26812.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
196 B
Rust
Raw Normal View History

fn avg<T=T::Item>(_: T) {}
2021-03-01 11:50:09 +00:00
//~^ ERROR generic parameters with a default cannot use forward declared identifiers
//~| ERROR defaults for type parameters
//~| WARN previously accepted
fn main() {}