blob: d0fe55bd1d0f1dd4a06f3ab27dd18322fba92097 [file] [edit]
//! Regression test for <https://github.com/rust-lang/rust/issues/28600>.
//! pub extern fn with parameter type &str inside struct impl caused ICE.
//@ build-pass
struct Test;
impl Test {
#[allow(dead_code)]
#[allow(unused_variables)]
#[allow(improper_ctypes_definitions)]
pub extern "C" fn test(val: &str) {
}
}
fn main() {}