]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0508.rs
Rollup merge of #61135 - czipperz:rc-make_mut-weak-doc, r=Mark-Simulacrum
[rust.git] / src / test / ui / error-codes / E0508.rs
1 struct NonCopy;
2
3 fn main() {
4     let array = [NonCopy; 1];
5     let _value = array[0];  //~ ERROR [E0508]
6 }