rust/tests/ui/traits/alias/wf.rs
2023-01-11 09:32:08 +00:00

8 lines
127 B
Rust

#![feature(trait_alias)]
trait Foo {}
trait A<T: Foo> {}
trait B<T> = A<T>; //~ ERROR `T: Foo` is not satisfied
fn main() {}