mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 04:39:16 +00:00
Revert "cap-clause-use-after-move: modernize error msg"
This reverts commit bbda995bfe
.
This commit is contained in:
parent
5b415c7372
commit
a477c5af20
@ -1,5 +1,7 @@
|
||||
// error-pattern:Unsatisfied precondition constraint
|
||||
|
||||
fn main() {
|
||||
let x = 5;
|
||||
let _y = fn~(move x) { };
|
||||
let _z = x; //~ ERROR use of moved variable: `x`
|
||||
let _z = x; //< error: Unsatisfied precondition constraint
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user