mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
37 lines
916 B
Rust
37 lines
916 B
Rust
//@ run-pass
|
|
|
|
#![allow(dead_code)]
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
fn check_expr() {
|
|
let _: & usize = &1;
|
|
let _: & & usize = &&1;
|
|
let _: & & & usize = &&&1;
|
|
let _: & & & usize = & &&1;
|
|
let _: & & & & usize = &&&&1;
|
|
let _: & & & & usize = & &&&1;
|
|
let _: & & & & & usize = &&&&&1;
|
|
}
|
|
|
|
fn check_ty() {
|
|
let _: &usize = & 1;
|
|
let _: &&usize = & & 1;
|
|
let _: &&&usize = & & & 1;
|
|
let _: & &&usize = & & & 1;
|
|
let _: &&&&usize = & & & & 1;
|
|
let _: & &&&usize = & & & & 1;
|
|
let _: &&&&&usize = & & & & & 1;
|
|
}
|
|
|
|
fn check_pat() {
|
|
let &_ = & 1_usize;
|
|
let &&_ = & & 1_usize;
|
|
let &&&_ = & & & 1_usize;
|
|
let & &&_ = & & & 1_usize;
|
|
let &&&&_ = & & & & 1_usize;
|
|
let & &&&_ = & & & & 1_usize;
|
|
let &&&&&_ = & & & & & 1_usize;
|
|
}
|
|
|
|
pub fn main() {}
|