mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
9 lines
159 B
Rust
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() {}
|