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
use gc::{Trace,Finalize,Gc};#[derive(Trace,Finalize)]structTest();fnmain(){let _x = Gc::new(Test());}
Warning:
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
--> src/main.rs:3:17
|
3 | #[derive(Trace, Finalize)]
| ^-------
| |
| `Finalize` is not local
| move the `impl` block outside of this constant `_DERIVE_gc_Finalize_FOR_Test`
4 | struct Test();
| ---- `Test` is not local
|
This is probably due to an implementation detail in the derive macro.
It seems this may become an error in the future, so this should be fixed.
The text was updated successfully, but these errors were encountered:
You need almost nothing to trigger this:
Warning:
This is probably due to an implementation detail in the derive macro.
It seems this may become an error in the future, so this should be fixed.
The text was updated successfully, but these errors were encountered: