rust/tests/ui/traits/alias/wf.rs

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

8 lines
127 B
Rust
Raw Normal View History

#![feature(trait_alias)]
trait Foo {}
trait A<T: Foo> {}
2018-11-27 09:56:36 +00:00
trait B<T> = A<T>; //~ ERROR `T: Foo` is not satisfied
fn main() {}