mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
16 lines
486 B
Rust
16 lines
486 B
Rust
// Regression test for issue #89938.
|
|
// compile-flags: --crate-type=lib
|
|
// known-bug: #103507
|
|
// failure-status: 101
|
|
// normalize-stderr-test "note: .*\n\n" -> ""
|
|
// normalize-stderr-test "thread 'rustc' panicked.*\n" -> ""
|
|
// normalize-stderr-test "(error: internal compiler error: [^:]+):\d+:\d+: " -> "$1:LL:CC: "
|
|
// rustc-env:RUST_BACKTRACE=0
|
|
|
|
#![feature(const_precise_live_drops)]
|
|
|
|
pub const fn f() {
|
|
let _: Option<String> = None;
|
|
let _: &'static Option<String> = &None;
|
|
}
|