diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-26812.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-26812.rs b/src/test/ui/issues/issue-26812.rs new file mode 100644 index 000000000..3391ea4b3 --- /dev/null +++ b/src/test/ui/issues/issue-26812.rs @@ -0,0 +1,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() {} |