]> git.lizzy.rs Git - rust.git/commitdiff
fix stderrs
authordylan_DPC <dylan.dpc@gmail.com>
Wed, 6 Jun 2018 15:21:57 +0000 (20:51 +0530)
committerdylan_DPC <dylan.dpc@gmail.com>
Wed, 6 Jun 2018 15:21:57 +0000 (20:51 +0530)
src/test/ui/rfc-1937-termination-trait/termination-trait-in-test-should-panic.stderr
src/test/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.stderr

index e3dab82df41b9c584fd76ff6b98e4aa9b75899c0..bfdcf01c325f709f0678be458f945313398df750 100644 (file)
@@ -1,5 +1,5 @@
 error: functions using `#[should_panic]` must return `()`
-  --> $DIR/termination-trait-in-test-should-panic.rs:22:1
+  --> $DIR/termination-trait-in-test-should-panic.rs:21:1
    |
 LL | / fn not_a_num() -> Result<(), ParseIntError> {
 LL | |     //~^ ERROR functions using `#[should_panic]` must return `()`
index 8efd8a216f10f82293c7e060d68a9ea02aa05ec7..0972a0994fc0d38261b8abf776066f5e0f47399f 100644 (file)
@@ -1,5 +1,5 @@
 error[E0277]: `main` has invalid return type `std::result::Result<f32, std::num::ParseIntError>`
-  --> $DIR/termination-trait-test-wrong-type.rs:18:1
+  --> $DIR/termination-trait-test-wrong-type.rs:16:1
    |
 LL | / fn can_parse_zero_as_f32() -> Result<f32, ParseIntError> { //~ ERROR
 LL | |     "0".parse()