error[E0576]: cannot find associated type `foobar` in trait `Copy` --> $DIR/issue-22384.rs:6:21 | LL | <::foobar as Trait>::foo(); | ^^^^^^ not found in `Copy` error: aborting due to previous error For more information about this error, try `rustc --explain E0576`.