Skip to content

Commit 9908f59

Browse files
committed
Fix ui test
1 parent 35e86c2 commit 9908f59

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/ui/abi/issues/issue-22565-rust-call.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ extern "rust-call" fn b(_i: i32) {}
55

66
trait Tr {
77
extern "rust-call" fn a();
8-
//~^ ERROR A function with the "rust-call" ABI must take a single non-self argument
98

109
extern "rust-call" fn b() {}
1110
//~^ ERROR A function with the "rust-call" ABI must take a single non-self argument
@@ -19,7 +18,7 @@ impl Foo {
1918
}
2019

2120
impl Tr for Foo {
22-
fn a() {}
21+
extern "rust-call" fn a() {}
2322
//~^ ERROR A function with the "rust-call" ABI must take a single non-self argument
2423
}
2524

0 commit comments

Comments
 (0)