Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_ecs/compile_fail/tests/ui/resource_derive.rs
7238 views
1
use bevy_ecs::prelude::*;
2
3
#[derive(Resource)]
4
//~v ERROR: Lifetimes must be 'static
5
struct A<'a> {
6
foo: &'a str,
7
}
8
9
#[derive(Resource)]
10
struct B<'a: 'static> {
11
foo: &'a str,
12
}
13
14