mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
13 lines
180 B
Rust
13 lines
180 B
Rust
//@ run-pass
|
|
|
|
// From https://github.com/rust-lang/rust/issues/65727
|
|
|
|
const _: &i32 = {
|
|
let x = &(5, false).0;
|
|
x
|
|
};
|
|
|
|
fn main() {
|
|
let _: &'static i32 = &(5, false).0;
|
|
}
|