about summary refs log tree commit diff
path: root/tests/ui/did_you_mean/trait-object-reference-without-parens-suggestion.rs
blob: eff431f4665f97c68dbce615c0f77ed093de259c (plain)
1
2
3
4
5
6
7
8
9
//@ edition: 2015
#![allow(bare_trait_objects)]

fn main() {
    let _: &Copy + 'static; //~ ERROR expected a path
    //~^ ERROR is not dyn compatible
    let _: &'static Copy + 'static; //~ ERROR expected a path
    //~^ ERROR is not dyn compatible
}