summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/drop_none.rs
blob: 9d98d3be87464c43f28344f4e6845e4d77ae9c5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// build-pass (FIXME(62277): could be check-pass?)
#![allow(dead_code)]
struct A;
impl Drop for A {
    fn drop(&mut self) {}
}

const FOO: Option<A> = None;

const BAR: () = (FOO, ()).1;


fn main() {}