2023-05-09 12:17:04 -05:00
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
2016-04-26 12:51:14 -05:00
|
|
|
trait x {
|
|
|
|
fn use_x<T>(&self);
|
|
|
|
}
|
|
|
|
struct y(());
|
|
|
|
impl x for y {
|
|
|
|
fn use_x<T>(&self) {
|
2023-05-09 12:17:04 -05:00
|
|
|
struct foo {
|
|
|
|
//~ ERROR quux
|
|
|
|
i: (),
|
2016-04-26 12:51:14 -05:00
|
|
|
}
|
|
|
|
fn new_foo<T>(i: ()) -> foo {
|
|
|
|
foo { i: i }
|
|
|
|
}
|
|
|
|
}
|
2015-03-18 16:05:24 -05:00
|
|
|
}
|