2021-10-18 19:00:00 -05:00
|
|
|
// Regression test for issue #89938.
|
|
|
|
// compile-flags: --crate-type=lib
|
2023-07-27 10:51:02 -05:00
|
|
|
// known-bug: #103507
|
|
|
|
// failure-status: 101
|
|
|
|
// normalize-stderr-test "note: .*\n\n" -> ""
|
2023-07-29 04:47:26 -05:00
|
|
|
// normalize-stderr-test "thread 'rustc' panicked.*\n.*\n" -> ""
|
2023-07-27 10:51:02 -05:00
|
|
|
// normalize-stderr-test "(error: internal compiler error: [^:]+):\d+:\d+: " -> "$1:LL:CC: "
|
|
|
|
// rustc-env:RUST_BACKTRACE=0
|
|
|
|
|
2021-10-18 19:00:00 -05:00
|
|
|
#![feature(const_precise_live_drops)]
|
|
|
|
|
|
|
|
pub const fn f() {
|
|
|
|
let _: Option<String> = None;
|
|
|
|
let _: &'static Option<String> = &None;
|
|
|
|
}
|