]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-19482.rs
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-19482.rs
CommitLineData
1a4d82fc 1// Test that a partially specified trait object with unspecified associated
9346a6ac 2// type does not type-check.
1a4d82fc
JJ
3
4trait Foo {
5 type A;
85aaf69f
SL
6
7 fn dummy(&self) { }
223e47cc
LB
8}
9
dc9dc135 10fn bar(x: &dyn Foo) {}
dfeec247 11//~^ ERROR the associated type `A` (from trait `Foo`) must be specified
1a4d82fc 12
223e47cc 13pub fn main() {}