rust/tests/ui/const-generics/generic_const_exprs/mismatched-gat-subst-kind.rs

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

12 lines
218 B
Rust
Raw Normal View History

2023-03-19 14:06:14 -05:00
#![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() {}