Skip to content

Move tests from src/test/run-fail/ to src/test/ui/ #65506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Move tests with macros from src/test/run-fail/ to src/test/ui/macros/
  • Loading branch information
nvlbg committed Oct 17, 2019
commit 72f01ec2447b6b3225ebe7283bf84a9aaec7367e
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// run-fail
// error-pattern:assertion failed: 1 == 2

fn main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// run-fail
// error-pattern:assertion failed: `(left == right)`
// error-pattern: left: `14`
// error-pattern:right: `15`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// run-fail
// error-pattern:panicked at 'assertion failed: false'

fn main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// run-fail
// error-pattern:panicked at 'test-assert-fmt 42 rust'

fn main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// run-fail
// error-pattern:panicked at 'test-assert-owned'

fn main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// run-fail
// error-pattern:panicked at 'test-assert-static'

fn main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// run-fail
// error-pattern:assertion failed: `(left != right)`
// error-pattern: left: `14`
// error-pattern:right: `14`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// run-fail
// error-pattern:not yet implemented
fn main() {
unimplemented!()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// run-fail
// error-pattern:internal error: entered unreachable code: 6 is not prime
fn main() {
unreachable!("{} is not {}", 6u32, "prime");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// run-fail
// error-pattern:internal error: entered unreachable code
fn main() {
unreachable!()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// run-fail
// error-pattern:internal error: entered unreachable code: uhoh
fn main() {
unreachable!("uhoh")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// run-fail
// error-pattern:internal error: entered unreachable code
fn main() {
unreachable!()
Expand Down