Revert "cap-clause-use-after-move: modernize error msg"
This reverts commit bbda995bfe
.
This commit is contained in:
parent
5b415c7372
commit
a477c5af20
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue