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

6 lines
175 B
Rust
Raw Normal View History

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
}