]> git.lizzy.rs Git - rust.git/blob - src/test/ui/E0508.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / E0508.rs
1 struct NonCopy;
2
3 fn main() {
4     let array = [NonCopy; 1];
5     let _value = array[0];  //~ ERROR [E0508]
6 }