blob: 11a5e7fdfde83c1f126f9d2d067e37de3ea4c1bc [file] [edit]
error: the `linkage` attribute cannot be used on type aliases
--> $DIR/linkage.rs:7:3
|
LL | #[linkage = "weak"]
| ^^^^^^^
|
= help: the `linkage` attribute can be applied to foreign statics, functions, and statics
error: the `linkage` attribute cannot be used on modules
--> $DIR/linkage.rs:10:3
|
LL | #[linkage = "weak"]
| ^^^^^^^
|
= help: the `linkage` attribute can be applied to foreign statics, functions, and statics
error: the `linkage` attribute cannot be used on structs
--> $DIR/linkage.rs:13:3
|
LL | #[linkage = "weak"]
| ^^^^^^^
|
= help: the `linkage` attribute can be applied to foreign statics, functions, and statics
error: the `linkage` attribute cannot be used on inherent impl blocks
--> $DIR/linkage.rs:16:3
|
LL | #[linkage = "weak"]
| ^^^^^^^
|
= help: the `linkage` attribute can be applied to foreign statics, functions, and statics
error: the `linkage` attribute cannot be used on expressions
--> $DIR/linkage.rs:24:7
|
LL | #[linkage = "weak"]
| ^^^^^^^
|
= help: the `linkage` attribute can be applied to foreign statics, functions, and statics
error: the `linkage` attribute cannot be used on closures
--> $DIR/linkage.rs:40:15
|
LL | let _ = #[linkage = "weak"]
| ^^^^^^^
|
= help: the `linkage` attribute can be applied to foreign functions, foreign statics, functions, methods, and statics
error: `const fn` are incompatible with the `linkage` attribute
--> $DIR/linkage.rs:45:1
|
LL | #[linkage = "weak"]
| ^^^^^^^^^^^^^^^^^^^
|
= note: `const fn` may be called at compile time, which happens before linking
error: aborting due to 7 previous errors