diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-11-14 16:52:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-14 16:52:12 +0100 |
| commit | 01e979f7b1409a14df6535ca736e65331f3f37f6 (patch) | |
| tree | 114fc719d32ad2a2a61302a447894f7a01229648 /src/rustllvm/RustWrapper.cpp | |
| parent | 529bb320f7d1c3a049fe5fe8d2542da4fb394dce (diff) | |
| parent | a6824f18b886d3ca846916fb9bdc188453d2ebe9 (diff) | |
| download | rust-01e979f7b1409a14df6535ca736e65331f3f37f6.tar.gz rust-01e979f7b1409a14df6535ca736e65331f3f37f6.zip | |
Rollup merge of #45967 - matthewjasper:array-move-types, r=arielb1
MIR-borrowck: don't ICE for cannot move from array error Closes #45694 compile-fail test E0508 now gives ```text error[E0508]: cannot move out of type `[NonCopy; 1]`, a non-copy array (Ast) --> .\src\test\compile-fail\E0508.rs:18:18 | 18 | let _value = array[0]; //[ast]~ ERROR E0508 | ^^^^^^^^ | | | cannot move out of here | help: consider using a reference instead: `&array[0]` error[E0508]: cannot move out of type `[NonCopy; 1]`, a non-copy array (Mir) --> .\src\test\compile-fail\E0508.rs:18:18 | 18 | let _value = array[0]; //[ast]~ ERROR E0508 | ^^^^^^^^ cannot move out of here error: aborting due to 2 previous errors ```
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
