This code snippet:
struct Foo<'a>(&'a [&'a bool]);
static TEST: bool = true;
static FOO: Foo = Foo(&[&TEST]);
fn main() {}
compiles on stable rust rustc 1.20.0 (f3d6973f4 2017-08-27), but not on rustc 1.22.0-nightly (2f1ef9ef1 2017-09-05).
Playground link
This code snippet:
compiles on stable rust
rustc 1.20.0 (f3d6973f4 2017-08-27), but not onrustc 1.22.0-nightly (2f1ef9ef1 2017-09-05).Playground link