MCPcopy Create free account
hub / github.com/Apress/beginning-rust-2e / S

Class S

Source Code/24-13.rs:5–8  ·  view source on GitHub ↗

ILLEGAL. The compiler prints the error message: missing lifetime specifier */ In some library code:

Source from the content-addressed store, hash-verified

3*/
4// In some library code:
5struct S {
6 b: bool,
7 ri: & i32,
8}
9fn create_s(ri: &i32) -> S {
10 S { b: true, ri: ri }
11}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected