rust/tests/ui/did_you_mean/trait-object-reference-without-parens-suggestion.rs

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-28 18:46:13 +00:00
#![allow(bare_trait_objects)]
fn main() {
2017-11-20 12:13:27 +00:00
let _: &Copy + 'static; //~ ERROR expected a path
//~^ ERROR cannot be made into an object
let _: &'static Copy + 'static; //~ ERROR expected a path
}