mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +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() {}
|