2019-10-28 19:00:00 -05:00
|
|
|
// build-pass
|
2017-03-03 20:46:14 -06: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 09:57:09 -05:00
|
|
|
#[allow(improper_ctypes_definitions)]
|
2020-09-01 16:28:11 -05:00
|
|
|
pub extern "C" fn test(val: &str) {
|
2017-03-03 20:46:14 -06:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|