2018-09-30 19:45:31 +02:00
|
|
|
// run-pass
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
// We shouldn't promote this
|
2021-06-18 15:09:40 +08:00
|
|
|
let _ = &(main as fn() == main as fn());
|
2018-09-30 19:45:31 +02:00
|
|
|
// Also check nested case
|
2021-06-18 15:09:40 +08:00
|
|
|
let _ = &(&(main as fn()) == &(main as fn()));
|
2018-09-30 19:45:31 +02:00
|
|
|
}
|