blob: 0f6cea8e69fcf29ef4e43816581e868427216875 [file] [log] [blame]
// run-rustfix
#![allow(unused_variables)]
trait Get {
type Value;
fn get(&self) -> <Self as Get>::Value;
}
trait Other {
fn uhoh<U:Get>(&self, foo: U, bar: <Self as Get>::Value) {}
//~^ ERROR the trait bound `Self: Get` is not satisfied
}
fn main() {
}