about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRune Tynan <runetynan@gmail.com>2020-12-03 19:16:57 -0500
committerRune Tynan <runetynan@gmail.com>2020-12-03 19:16:57 -0500
commit9908f593195f8241a97fe7f453ade9a54510371b (patch)
treed792340b917a765fc5c4ae20d7cef15e02376fdd
parent35e86c2ab52603bbb5e5561bbab1e7e62c668d9d (diff)
downloadrust-9908f593195f8241a97fe7f453ade9a54510371b.tar.gz
rust-9908f593195f8241a97fe7f453ade9a54510371b.zip
Fix ui test
-rw-r--r--src/test/ui/abi/issues/issue-22565-rust-call.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/ui/abi/issues/issue-22565-rust-call.rs b/src/test/ui/abi/issues/issue-22565-rust-call.rs
index f0740185da0..383eaab454e 100644
--- a/src/test/ui/abi/issues/issue-22565-rust-call.rs
+++ b/src/test/ui/abi/issues/issue-22565-rust-call.rs
@@ -5,7 +5,6 @@ extern "rust-call" fn b(_i: i32) {}
 
 trait Tr {
     extern "rust-call" fn a();
-    //~^ ERROR A function with the "rust-call" ABI must take a single non-self argument
 
     extern "rust-call" fn b() {}
     //~^ ERROR A function with the "rust-call" ABI must take a single non-self argument
@@ -19,7 +18,7 @@ impl Foo {
 }
 
 impl Tr for Foo {
-    fn a() {}
+    extern "rust-call" fn a() {}
     //~^ ERROR A function with the "rust-call" ABI must take a single non-self argument
 }