]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-19482.rs
New upstream version 1.49.0+dfsg1
[rustc.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: &dyn Foo) {}
11 //~^ ERROR the associated type `A` (from trait `Foo`) must be specified
12
13 pub fn main() {}