Skip to content

Commit

Permalink
never_type: test interaction with auto traits
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Nov 21, 2019
1 parent 089229a commit 238d03b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/ui/never_type/auto-traits.rs
@@ -0,0 +1,16 @@
// check-pass

#![feature(optin_builtin_traits)]

fn main() {
enum Void {}

auto trait Auto {}
fn assert_auto<T: Auto>() {}
assert_auto::<Void>();
assert_auto::<!>();

fn assert_send<T: Send>() {}
assert_send::<Void>();
assert_send::<!>();
}

0 comments on commit 238d03b

Please sign in to comment.