summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/object/object-unsafe-missing-assoc-type.rs
blob: 21f7fd92e80da1fb88157fa46117557999dae277 (plain)
1
2
3
4
5
6
7
trait Foo {
    type Bar<T>;
}

fn bar(x: &dyn Foo) {} //~ ERROR the trait `Foo` cannot be made into an object

fn main() {}