blob: 6ce5cbd3b555a75da785c109802bc3aac99ceb9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
trait Trait {}
impl Trait for i32 {}
// Since `Assoc` doesn't actually exist, it's "stranded", and won't show up in
// the list of opaques that may be defined by the function. Make sure we don't
// ICE in this case.
fn produce<T>() -> impl Trait<Assoc = impl Trait> {
//~^ ERROR associated type `Assoc` not found for `Trait`
//~| ERROR associated type `Assoc` not found for `Trait`
16
}
fn main () {}
|