mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
15 lines
274 B
Rust
15 lines
274 B
Rust
// build-pass
|
|
// #28600 ICE: pub extern fn with parameter type &str inside struct impl
|
|
|
|
struct Test;
|
|
|
|
impl Test {
|
|
#[allow(dead_code)]
|
|
#[allow(unused_variables)]
|
|
#[allow(improper_ctypes_definitions)]
|
|
pub extern "C" fn test(val: &str) {
|
|
|
|
}
|
|
}
|
|
|
|
fn main() {}
|