summary refs log tree commit diff
path: root/src/test/ui/issues/issue-28600.rs
blob: 44a85924e3d54d1f0da4d09f4f5acd440f604a42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// compile-pass
// #28600 ICE: pub extern fn with parameter type &str inside struct impl

struct Test;

impl Test {
    #[allow(dead_code)]
    #[allow(unused_variables)]
    pub extern fn test(val: &str) {

    }
}

fn main() {}