We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
needs-unwind
1 parent b678e92 commit 79c06fcCopy full SHA for 79c06fc
src/test/ui/async-await/track-caller/panic-track-caller.rs
@@ -1,8 +1,6 @@
1
// run-pass
2
// edition:2021
3
-
4
-// ignore-wasm no panic or subprocess support
5
-// ignore-emscripten no panic or subprocess support
+// needs-unwind
6
#![feature(closure_track_caller)]
7
8
use std::future::Future;
@@ -73,6 +71,6 @@ fn panicked_at(f: impl FnOnce() + panic::UnwindSafe) -> u32 {
73
71
}
74
72
75
fn main() {
76
- assert_eq!(panicked_at(|| block_on(foo())), 43);
77
- assert_eq!(panicked_at(|| block_on(foo_track_caller())), 56);
+ assert_eq!(panicked_at(|| block_on(foo())), 41);
+ assert_eq!(panicked_at(|| block_on(foo_track_caller())), 54);
78
0 commit comments