Skip to content

Commit

Permalink
Update ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Oct 31, 2019
1 parent 5dfb167 commit fcbf77e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/test/ui/invalid/invalid-variadic-function.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error: only foreign functions are allowed to be C-variadic
error[E0743]: only foreign functions are allowed to be C-variadic
--> $DIR/invalid-variadic-function.rs:1:26
|
LL | extern "C" fn foo(x: u8, ...);
Expand All @@ -12,3 +12,4 @@ LL | extern "C" fn foo(x: u8, ...);

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0743`.
3 changes: 2 additions & 1 deletion src/test/ui/parser/variadic-ffi-3.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
error: only foreign functions are allowed to be C-variadic
error[E0743]: only foreign functions are allowed to be C-variadic
--> $DIR/variadic-ffi-3.rs:1:18
|
LL | fn foo(x: isize, ...) {
| ^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0743`.
3 changes: 2 additions & 1 deletion src/test/ui/parser/variadic-ffi-4.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
error: only foreign functions are allowed to be C-variadic
error[E0743]: only foreign functions are allowed to be C-variadic
--> $DIR/variadic-ffi-4.rs:1:29
|
LL | extern "C" fn foo(x: isize, ...) {
| ^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0743`.

0 comments on commit fcbf77e

Please sign in to comment.