summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/issue-20692.rs
blob: 1cb2d8c7302a08f2a1c609ca5496e8b6e54808fa (plain)
1
2
3
4
5
6
7
8
9
10
11
trait Array: Sized + Copy {}

fn f<T: Array>(x: &T) {
    let _ = x
    //~^ ERROR `Array` cannot be made into an object
    as
    &dyn Array;
    //~^ ERROR `Array` cannot be made into an object
}

fn main() {}