Skip to content

Commit

Permalink
Ignore dead code in function-epilogue demo
Browse files Browse the repository at this point in the history
    warning: struct `S` is never constructed
     --> function-epilogue/demo/main.rs:3:12
      |
    3 | pub struct S(i32);
      |            ^
      |
      = note: `#[warn(dead_code)]` on by default
  • Loading branch information
dtolnay committed Jun 8, 2024
1 parent b2c0e96 commit e9c2c2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion function-epilogue/demo/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ impl S {
}
}

fn main() {}
fn main() {
let _ = S;
}

0 comments on commit e9c2c2e

Please sign in to comment.