summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0508.rs
blob: 072c3d66183e33d38f8e119722510f3326ef3d25 (plain)
1
2
3
4
5
6
struct NonCopy;

fn main() {
    let array = [NonCopy; 1];
    let _value = array[0];  //~ ERROR [E0508]
}