Skip to content

Commit 2adc07f

Browse files
added unit test
1 parent ae9c09d commit 2adc07f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/compile-fail/E0045.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
extern "Rust" { fn foo(x: u8, ...); } //~ ERROR E0045
11+
extern "Rust" { fn foo(x: u8, ...); } //~ ERROR E0045
12+
//~| NOTE variadics require C calling conventions
1213

1314
fn main() {
1415
}

0 commit comments

Comments
 (0)