1 error[E0308]: mismatched types
2 --> $DIR/rfc1623.rs:21:35
4 LL | static SOME_STRUCT: &SomeStruct = SomeStruct {
5 | ___________________________________^
7 LL | | foo: &Foo { bools: &[false, true] },
8 LL | | bar: &Bar { bools: &[true, true] },
12 | |_^ expected `&SomeStruct<'static, 'static, 'static>`, found struct `SomeStruct`
14 help: consider borrowing here
16 LL | static SOME_STRUCT: &SomeStruct = &SomeStruct {
18 LL | foo: &Foo { bools: &[false, true] },
19 LL | bar: &Bar { bools: &[true, true] },
24 error[E0271]: type mismatch resolving `for<'a, 'b> <fn(&Foo<'_>) -> &Foo<'_> {id::<&Foo<'_>>} as std::ops::FnOnce<(&'a Foo<'b>,)>>::Output == &'a Foo<'b>`
25 --> $DIR/rfc1623.rs:25:8
28 | ^^^ expected bound lifetime parameter 'a, found concrete lifetime
30 = note: required for the cast to the object type `dyn for<'a, 'b> std::ops::Fn(&'a Foo<'b>) -> &'a Foo<'b>`
32 error: aborting due to 2 previous errors
34 Some errors have detailed explanations: E0271, E0308.
35 For more information about an error, try `rustc --explain E0271`.