rust/src/test/ui/error-codes/E0194.rs
Matthew Jasper f70c90c677 Move type parameter shadowing errors to resolve
For some reason type checking did this. Further it didn't consider
hygiene.
2019-08-17 09:12:32 +01:00

8 lines
137 B
Rust

trait Foo<T> {
fn do_something(&self) -> T;
fn do_something_else<T: Clone>(&self, bar: T);
//~^ ERROR E0403
}
fn main() {
}