2024-03-13 12:44:00 -05:00
|
|
|
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`
|
2024-03-20 11:52:54 -05:00
|
|
|
//~| ERROR associated type `Assoc` not found for `Trait`
|
2024-03-13 12:44:00 -05:00
|
|
|
16
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main () {}
|