fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `fn(u32) -> Time {Time}: Resource` is not satisfied 2 --> $DIR/call-on-unimplemented-ctor.rs:3:21 3 | 4LL | insert_resource(Time); 5 | --------------- ^^^^ the trait `Resource` is not implemented for fn item `fn(u32) -> Time {Time}` 6 | | 7 | required by a bound introduced by this call 8 | 9note: required by a bound in `insert_resource` 10 --> $DIR/call-on-unimplemented-ctor.rs:10:23 11 | 12LL | fn insert_resource<R: Resource>(resource: R) {} 13 | ^^^^^^^^ required by this bound in `insert_resource` 14help: use parentheses to construct this tuple struct 15 | 16LL | insert_resource(Time(/* u32 */)); 17 | +++++++++++ 18 19error: aborting due to previous error 20 21For more information about this error, try `rustc --explain E0277`.