#Compile error with an empty project

6 messages · Page 1 of 1 (latest)

real pumice
#

I'm getting an error with a boiler plate project for bevy 0.9.1 ```rust
use bevy::prelude::*;

fn main() {
App::new().run();
}

error[E0774]: derive may only be applied to structs, enums and unions
--> C:\Users\jacob.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_render-0.9.1\src\extract_resource.rs:15:1
|
15 | #[derive(Resource)]
| ^^^^^^^^^^^^^^^^^^^ not applicable here
16 | / pub trait ExtractResource: Resource {
17 | | type Source: Resource;
18 | |
19 | | /// Defines how the resource is transferred into the "render world".
20 | | fn extract_resource(source: &Self::Source) -> Self;
21 | | }
| |_- not a struct, enum or union

#

rust is up to date, this is just strange

#

same with bevy 0.9.0

real pumice
#

cleaning and compiling other 0.9.1 projects is fine

odd cosmos
#

what happens if you just go into file and delete that derive there?