]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-19482.rs
Rollup merge of #107091 - clubby789:infer-ftl-missing-dollar, r=compiler-errors
[rust.git] / tests / ui / issues / issue-19482.rs
1 // Test that a partially specified trait object with unspecified associated
2 // type does not type-check.
3
4 trait Foo {
5     type A;
6
7     fn dummy(&self) { }
8 }
9
10 fn bar(x: &dyn Foo) {}
11 //~^ ERROR the associated type `A` (from trait `Foo`) must be specified
12
13 pub fn main() {}