You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The #[pointee] attribute is required even if there is only one generic parameter #129465
error: At least one generic type should be designated as `#[pointee]` in order to derive `SmartPointer` traits
--> src/lib.rs:5:10
|
5 | #[derive(SmartPointer)]
| ^^^^^^^^^^^^
|
= note: this error originates in the derive macro `SmartPointer` (in Nightly builds, run with -Z macro-backtrace for more info)
However, the RFC says that specifying #[pointee] when the struct has only one type parameter is allowed, but not required.
Activity
rust: experiment with `#[derive(SmartPointer)]`
rust: experiment with `#[derive(SmartPointer)]`
rust: experiment with `#[derive(SmartPointer)]`
rust: experiment with `#[derive(SmartPointer)]`
dingxiangfei2009 commentedon Aug 23, 2024
@rustbot claim
Darksonn commentedon Aug 23, 2024
Oh, also, the error message says "At least one generic" but it's not valid to have several pointees.
rust: experiment with `#[derive(SmartPointer)]`
Rollup merge of rust-lang#129467 - dingxiangfei2009:smart-pointer-rel…
Rollup merge of rust-lang#129467 - dingxiangfei2009:smart-pointer-rel…
Rollup merge of rust-lang#129467 - dingxiangfei2009:smart-pointer-rel…
Unrolled build for rust-lang#129467