mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
error[E0515]: cannot return reference to temporary value
|
|
--> $DIR/darwin-objc-bad-ref.rs:12:5
|
|
|
|
|
LL | &objc::class!("NSObject")
|
|
| ^------------------------
|
|
| ||
|
|
| |temporary value created here
|
|
| returns a reference to data owned by the current function
|
|
|
|
error[E0515]: cannot return reference to temporary value
|
|
--> $DIR/darwin-objc-bad-ref.rs:17:5
|
|
|
|
|
LL | &objc::class!("NSObject")
|
|
| ^------------------------
|
|
| ||
|
|
| |temporary value created here
|
|
| returns a reference to data owned by the current function
|
|
|
|
error[E0515]: cannot return reference to temporary value
|
|
--> $DIR/darwin-objc-bad-ref.rs:22:5
|
|
|
|
|
LL | &objc::selector!("alloc")
|
|
| ^------------------------
|
|
| ||
|
|
| |temporary value created here
|
|
| returns a reference to data owned by the current function
|
|
|
|
error[E0515]: cannot return reference to temporary value
|
|
--> $DIR/darwin-objc-bad-ref.rs:27:5
|
|
|
|
|
LL | &objc::selector!("alloc")
|
|
| ^------------------------
|
|
| ||
|
|
| |temporary value created here
|
|
| returns a reference to data owned by the current function
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0515`.
|