summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/associated-types-for-unimpl-trait.fixed
blob: 80bbef17469db31ecb96ff0b785ab0180ca6451b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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) where Self: Get {}
    //~^ ERROR the trait bound `Self: Get` is not satisfied
}

fn main() {
}