]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-28600.rs
Merge commit '9a0c32934ebe376128230aa8da3275697b2053e7' into sync_cg_clif-2021-03-05
[rust.git] / src / test / ui / issues / issue-28600.rs
1 // build-pass
2 // #28600 ICE: pub extern fn with parameter type &str inside struct impl
3
4 struct Test;
5
6 impl Test {
7     #[allow(dead_code)]
8     #[allow(unused_variables)]
9     #[allow(improper_ctypes_definitions)]
10     pub extern "C" fn test(val: &str) {
11
12     }
13 }
14
15 fn main() {}