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