]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/expect_fun_call.stderr
Merge remote-tracking branch 'origin/rust-1.34.1' into HEAD
[rust.git] / tests / ui / expect_fun_call.stderr
index 900e251d964c20b2b91da0ee38fa3363c804214b..bb16fabd973bafc48d7583f92883758a6e48c94e 100644 (file)
@@ -60,5 +60,11 @@ error: use of `expect` followed by a function call
 LL |         Some("foo").expect(get_non_static_str(&0));
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| { panic!(get_non_static_str(&0).to_string()) })`
 
-error: aborting due to 10 previous errors
+error: use of `expect` followed by a function call
+  --> $DIR/expect_fun_call.rs:86:16
+   |
+LL |     Some(true).expect(&format!("key {}, {}", 1, 2));
+   |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| panic!("key {}, {}", 1, 2))`
+
+error: aborting due to 11 previous errors