]> git.lizzy.rs Git - rust.git/blob - tests/ui/did_you_mean/trait-object-reference-without-parens-suggestion.rs
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / did_you_mean / trait-object-reference-without-parens-suggestion.rs
1 #![allow(bare_trait_objects)]
2
3 fn main() {
4     let _: &Copy + 'static; //~ ERROR expected a path
5     //~^ ERROR cannot be made into an object
6     let _: &'static Copy + 'static; //~ ERROR expected a path
7 }