summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-28600.rs
blob: 52db0d5fd84a9520bc0b5e5798a39c7c0d6284cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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() {}