2025-08-09 20:41:01 +02:00
|
|
|
error: `#[linkage]` attribute cannot be used on type aliases
|
2024-08-17 15:03:20 +09:00
|
|
|
--> $DIR/linkage.rs:6:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[linkage = "weak"]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
2025-10-07 16:59:24 +02:00
|
|
|
= help: `#[linkage]` can be applied to foreign statics, functions, and statics
|
2024-08-17 15:03:20 +09:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[linkage]` attribute cannot be used on modules
|
2024-08-17 15:03:20 +09:00
|
|
|
--> $DIR/linkage.rs:9:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[linkage = "weak"]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
2025-10-07 16:59:24 +02:00
|
|
|
= help: `#[linkage]` can be applied to foreign statics, functions, and statics
|
2024-08-17 15:03:20 +09:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[linkage]` attribute cannot be used on structs
|
2024-08-17 15:03:20 +09:00
|
|
|
--> $DIR/linkage.rs:12:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[linkage = "weak"]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
2025-10-07 16:59:24 +02:00
|
|
|
= help: `#[linkage]` can be applied to foreign statics, functions, and statics
|
2024-08-17 15:03:20 +09:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[linkage]` attribute cannot be used on inherent impl blocks
|
2024-08-17 15:03:20 +09:00
|
|
|
--> $DIR/linkage.rs:15:1
|
|
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
LL | #[linkage = "weak"]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
2025-10-07 16:59:24 +02:00
|
|
|
= help: `#[linkage]` can be applied to foreign statics, functions, and statics
|
2024-08-17 15:03:20 +09:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[linkage]` attribute cannot be used on expressions
|
2024-08-17 15:03:20 +09:00
|
|
|
--> $DIR/linkage.rs:23:5
|
|
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
LL | #[linkage = "weak"]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
2025-10-07 16:59:24 +02:00
|
|
|
= help: `#[linkage]` can be applied to foreign statics, functions, and statics
|
2024-08-17 15:03:20 +09:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[linkage]` attribute cannot be used on closures
|
2024-08-17 15:03:20 +09:00
|
|
|
--> $DIR/linkage.rs:39:13
|
|
|
|
|
|
|
|
|
|
|
LL | let _ = #[linkage = "weak"]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
2025-10-07 16:59:24 +02:00
|
|
|
= help: `#[linkage]` can be applied to foreign functions, foreign statics, functions, methods, and statics
|
2024-08-17 15:03:20 +09:00
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|
|