rust/tests/ui/associated-types/issue-64855.rs

9 lines
159 B
Rust

pub trait Foo {
type Type;
}
pub struct Bar<T>(<Self as Foo>::Type) where Self: ;
//~^ ERROR the trait bound `Bar<T>: Foo` is not satisfied
fn main() {}