rust/tests/ui/did_you_mean/trait-object-reference-with...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
206 B
Rust
Raw Normal View History

2019-05-29 02:46:13 +08:00
#![allow(bare_trait_objects)]
fn main() {
2017-11-20 20:13:27 +08:00
let _: &Copy + 'static; //~ ERROR expected a path
//~^ ERROR cannot be made into an object
let _: &'static Copy + 'static; //~ ERROR expected a path
}