]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-19482.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / 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: &Foo) {}
11 //~^ ERROR the associated type `A` (from the trait `Foo`) must be specified
12
13 pub fn main() {}