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
4 changed files with 5 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue