mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
21 lines
273 B
Rust
21 lines
273 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
#![allow(unused_variables)]
|
|
|
|
trait U {}
|
|
trait T<X: U> { fn get(self) -> X; }
|
|
|
|
trait S2<Y: U> {
|
|
fn m(x: Box<dyn T<Y>+'static>) {}
|
|
}
|
|
|
|
struct St<X: U> {
|
|
f: Box<dyn T<X>+'static>,
|
|
}
|
|
|
|
impl<X: U> St<X> {
|
|
fn blah() {}
|
|
}
|
|
|
|
fn main() {}
|