about summary refs log tree commit diff
path: root/tests/ui/dyn-compatibility/missing-assoc-type.rs
blob: 135761dd0365680c10e4b8776f528c3406b36d97 (plain)
1
2
3
4
5
6
7
trait Foo {
    type Bar<T>;
}

fn bar(x: &dyn Foo) {} //~ ERROR the trait `Foo` is not dyn compatible

fn main() {}