|
| 1 | +error: attribute value must be a literal |
| 2 | + --> $DIR/darwin-objc-bad-arg.rs:12:18 |
| 3 | + | |
| 4 | +LL | objc::class!(s); |
| 5 | + | ^ |
| 6 | + |
| 7 | +error: attribute value must be a literal |
| 8 | + --> $DIR/darwin-objc-bad-arg.rs:15:18 |
| 9 | + | |
| 10 | +LL | objc::class!(NSObject); |
| 11 | + | ^^^^^^^^ |
| 12 | + |
| 13 | + WARN rustc_errors::emitter Invalid span $SRC_DIR/core/src/os/darwin/objc.rs:LL:COL (#6), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "$SRC_DIR/core/src/os/darwin/objc.rs" }) } |
| 14 | +error[E0539]: malformed `rustc_objc_class` attribute input |
| 15 | + --> $DIR/darwin-objc-bad-arg.rs:18:5 |
| 16 | + | |
| 17 | +LL | objc::class!(123); |
| 18 | + | ^^^^^^^^^^^^^---^ |
| 19 | + | | | |
| 20 | + | | expected a string literal here |
| 21 | + | help: must be of the form: `#[rustc_objc_class = "ClassName"]` |
| 22 | + | |
| 23 | + = note: this error originates in the macro `objc::class` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 24 | + |
| 25 | +error: attribute value must be a literal |
| 26 | + --> $DIR/darwin-objc-bad-arg.rs:22:21 |
| 27 | + | |
| 28 | +LL | objc::selector!(s); |
| 29 | + | ^ |
| 30 | + |
| 31 | +error: attribute value must be a literal |
| 32 | + --> $DIR/darwin-objc-bad-arg.rs:25:21 |
| 33 | + | |
| 34 | +LL | objc::selector!(alloc); |
| 35 | + | ^^^^^ |
| 36 | + |
| 37 | + WARN rustc_errors::emitter Invalid span $SRC_DIR/core/src/os/darwin/objc.rs:LL:COL (#9), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "$SRC_DIR/core/src/os/darwin/objc.rs" }) } |
| 38 | +error[E0539]: malformed `rustc_objc_selector` attribute input |
| 39 | + --> $DIR/darwin-objc-bad-arg.rs:28:5 |
| 40 | + | |
| 41 | +LL | objc::selector!(123); |
| 42 | + | ^^^^^^^^^^^^^^^^---^ |
| 43 | + | | | |
| 44 | + | | expected a string literal here |
| 45 | + | help: must be of the form: `#[rustc_objc_selector = "methodName"]` |
| 46 | + | |
| 47 | + = note: this error originates in the macro `objc::selector` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 48 | + |
| 49 | +error: aborting due to 6 previous errors |
| 50 | + |
| 51 | +For more information about this error, try `rustc --explain E0539`. |
0 commit comments