mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
15 lines
152 B
Rust
15 lines
152 B
Rust
//@ check-pass
|
|
|
|
pub trait Test {
|
|
type Item;
|
|
type Bundle: From<Self::Item>;
|
|
}
|
|
|
|
fn fails<T>()
|
|
where
|
|
T: Test<Item = String>,
|
|
{
|
|
}
|
|
|
|
fn main() {}
|