2015-05-12 04:02:47 -05:00
|
|
|
trait Foo {
|
|
|
|
fn answer(self);
|
|
|
|
}
|
|
|
|
|
|
|
|
struct NoData<T>;
|
|
|
|
//~^ ERROR: parameter `T` is never used
|
|
|
|
|
|
|
|
impl<T> Foo for T where NoData<T>: Foo {
|
|
|
|
//~^ ERROR: overflow evaluating the requirement
|
|
|
|
fn answer(self) {
|
2019-02-23 16:25:30 -06:00
|
|
|
//~^ ERROR: overflow evaluating the requirement
|
2015-05-12 04:02:47 -05:00
|
|
|
let val: NoData<T> = NoData;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|