summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-trait-in-ufcs-in-hrtb.rs
blob: fbaf41245e9b602d4becfaa49fbaba85458f3d63 (plain)
1
2
3
4
5
6
7
8
pub struct Bar<S>(S);

pub trait Foo {}

impl<S> Foo for Bar<S> where for<'a> <&'a S>::Item: Foo {}
//~^ ERROR ambiguous associated type

fn main() {}