3 #![feature(const_option)]
5 const FOO: i32 = Some(42i32).unwrap();
7 // This causes an error, but it is attributed to the `panic` *inside* `Option::unwrap` (maybe due
8 // to `track_caller`?). A note points to the originating `const`.
9 const BAR: i32 = Option::<i32>::None.unwrap(); //~ NOTE