mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
13 lines
218 B
Rust
13 lines
218 B
Rust
trait MyTrait {}
|
|
struct AssertMyTrait<T: MyTrait>(T);
|
|
|
|
trait HelperTrait {
|
|
type MyItem;
|
|
}
|
|
|
|
impl HelperTrait for () {
|
|
type MyItem = Option<((AssertMyTrait<bool>, u8))>; //~ ERROR the trait bound
|
|
}
|
|
|
|
fn main() {}
|