2019-10-29 00:00:00 +00:00
|
|
|
// build-pass
|
2017-03-04 11:46:14 +09:00
|
|
|
// #28600 ICE: pub extern fn with parameter type &str inside struct impl
|
|
|
|
|
|
|
|
struct Test;
|
|
|
|
|
|
|
|
impl Test {
|
|
|
|
#[allow(dead_code)]
|
|
|
|
#[allow(unused_variables)]
|
2020-05-28 15:57:09 +01:00
|
|
|
#[allow(improper_ctypes_definitions)]
|
2020-09-01 17:28:11 -04:00
|
|
|
pub extern "C" fn test(val: &str) {
|
2017-03-04 11:46:14 +09:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|