diff options
Diffstat (limited to 'tests/ui/const-generics/generic_const_exprs/mismatched-gat-subst-kind.rs')
-rw-r--r-- | tests/ui/const-generics/generic_const_exprs/mismatched-gat-subst-kind.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/const-generics/generic_const_exprs/mismatched-gat-subst-kind.rs b/tests/ui/const-generics/generic_const_exprs/mismatched-gat-subst-kind.rs new file mode 100644 index 000000000..734a37862 --- /dev/null +++ b/tests/ui/const-generics/generic_const_exprs/mismatched-gat-subst-kind.rs @@ -0,0 +1,11 @@ +#![feature(generic_const_exprs)] +//~^ WARN the feature `generic_const_exprs` is incomplete + +trait B { + type U<T>; +} + +fn f<T: B<U<1i32> = ()>>() {} +//~^ ERROR constant provided when a type was expected + +fn main() {} |