about summary refs log tree commit diff
path: root/tests/ui/type-alias/missing-associated-type-in-trait-object-22434.rs
blob: 35b30374c15cce2ed82c0339183dd2b6e541bfc6 (plain)
1
2
3
4
5
6
7
8
9
// https://github.com/rust-lang/rust/issues/22434
pub trait Foo {
    type A;
}

type I<'a> = &'a (dyn Foo + 'a);
//~^ ERROR the value of the associated type `A` in `Foo` must be specified

fn main() {}