]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-for-unimpl-trait.fixed
Rollup merge of #76468 - SNCPlay42:lifetime-names, r=Mark-Simulacrum
[rust.git] / src / test / ui / associated-types / associated-types-for-unimpl-trait.fixed
1 // run-rustfix
2 #![allow(unused_variables)]
3
4 trait Get {
5     type Value;
6     fn get(&self) -> <Self as Get>::Value;
7 }
8
9 trait Other {
10     fn uhoh<U:Get>(&self, foo: U, bar: <Self as Get>::Value) where Self: Get {}
11     //~^ ERROR the trait bound `Self: Get` is not satisfied
12 }
13
14 fn main() {
15 }