mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-15 08:23:26 +00:00
test: Remove 'error:' from error pattern
May include ansi escape code for color rendering on certain terminal.
This commit is contained in:
parent
5cfcf20b25
commit
28b825d846
@ -1,5 +1,5 @@
|
||||
// error-pattern:error: Variable 'x' captured more than once
|
||||
// error-pattern:Variable 'x' captured more than once
|
||||
fn main() {
|
||||
let x = 5;
|
||||
let y = sendfn[move x; copy x]() -> int { x };
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
// error-pattern:error: Variable 'x' captured more than once
|
||||
// error-pattern:Variable 'x' captured more than once
|
||||
fn main() {
|
||||
let x = 5;
|
||||
let y = sendfn[copy x, x]() -> int { x };
|
||||
|
@ -1,4 +1,4 @@
|
||||
// error-pattern: error: Variable 'x' captured more than once
|
||||
// error-pattern:Variable 'x' captured more than once
|
||||
fn main() {
|
||||
let x = 5;
|
||||
let y = sendfn[move x, x]() -> int { x };
|
||||
|
@ -1,4 +1,4 @@
|
||||
// error-pattern: error: Upvars (like 'x') cannot be moved into a closure
|
||||
// error-pattern:Upvars (like 'x') cannot be moved into a closure
|
||||
fn main() {
|
||||
let x = 5;
|
||||
let _y = sendfn[move x]() -> int {
|
||||
|
Loading…
Reference in New Issue
Block a user