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