summaryrefslogtreecommitdiffstats
path: root/tests/ui/did_you_mean/trait-object-reference-without-parens-suggestion.rs
blob: c9a097d3610a12eb0f001c7fec3d0363c3bb7336 (plain)
1
2
3
4
5
6
7
#![allow(bare_trait_objects)]

fn main() {
    let _: &Copy + 'static; //~ ERROR expected a path
    //~^ ERROR cannot be made into an object
    let _: &'static Copy + 'static; //~ ERROR expected a path
}