mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
18 lines
272 B
Rust
18 lines
272 B
Rust
#![crate_type = "lib"]
|
|
|
|
trait x {
|
|
fn use_x<T>(&self);
|
|
}
|
|
struct y(());
|
|
impl x for y {
|
|
fn use_x<T>(&self) {
|
|
struct foo {
|
|
//~ ERROR quux
|
|
i: (),
|
|
}
|
|
fn new_foo<T>(i: ()) -> foo {
|
|
foo { i: i }
|
|
}
|
|
}
|
|
}
|