about summary refs log tree commit diff
path: root/tests/ui/reachable/unreachable-by-call-arguments-issue-139627.rs
blob: b3310ac1c754c98013cdaeaa8753aa56b47b35cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ check-pass
#![deny(unreachable_code)]
#![deny(unused)]

pub enum Void {}

pub struct S<T>(T);

pub fn foo(void: Void, void1: Void) {
    let s = S(void);
    drop(s);
    let s1 = S { 0: void1 };
    drop(s1);
}

fn main() {}