Don't trigger unused_result on functions returning empty enums

This commit is contained in:
Owen Sanchez 2017-08-11 21:52:16 -07:00
parent 0b2c9f03ef
commit eeb748aa12
2 changed files with 14 additions and 1 deletions

View file

@ -12,15 +12,22 @@
#![deny(unused_results)]
enum Void {}
fn foo() {}
fn bar() -> ! {
loop {}
}
fn baz() -> Void {
loop {}
}
fn qux() {
foo();
bar();
baz();
}
fn main() {}