]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-54696.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-54696.rs
1 // run-pass
2
3 fn main() {
4     // We shouldn't promote this
5     let _ = &(main as fn() == main as fn());
6     // Also check nested case
7     let _ = &(&(main as fn()) == &(main as fn()));
8 }