summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-26812.rs
blob: 3391ea4b350af466de5ae328d942c0b56b443ced (plain)
1
2
3
4
5
6
#![feature(default_type_parameter_fallback)]

fn avg<T=T::Item>(_: T) {}
//~^ ERROR generic parameters with a default cannot use forward declared identifiers

fn main() {}