rust/src/test/ui/issues/issue-26812.rs

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

7 lines
172 B
Rust
Raw Normal View History

#![feature(default_type_parameter_fallback)]
fn avg<T=T::Item>(_: T) {}
2021-03-01 05:50:09 -06:00
//~^ ERROR generic parameters with a default cannot use forward declared identifiers
fn main() {}