We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 782b917 commit 110783aCopy full SHA for 110783a
1 file changed
gcc/testsuite/rust/compile/issue-1048.rs
@@ -0,0 +1,8 @@
1
+macro_rules! maybe_return { ($e:expr) => ($e); }
2
+
3
+fn frob(x: i32) -> i32{
4
+ maybe_return! {x}
5
+ // { dg-error "mismatched types. expected .... but got .i32. .E0308." "" { target *-*-* } .-1 }
6
+ // should return -1
7
+ -1
8
+}
0 commit comments