rust/tests/ui/issues/issue-28600.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
274 B
Rust
Raw Normal View History

// 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() {}