blob: 599c31ff917fcc18bcf9488324255e75dd9e4d35 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 | #![feature(type_alias_impl_trait)]
type Hi = impl Sized;
extern "C" {
    #[define_opaque(Hi)] fn foo();
    //~^ ERROR only functions, statics, and consts can define opaque types
    #[define_opaque(Hi)] static HI: Hi;
    //~^ ERROR only functions, statics, and consts can define opaque types
}
#[define_opaque(Hi)]
fn main() {
    let _: Hi = 0;
}
 |