Skip to content
Permalink
Browse files

never_type: test interaction with auto traits

  • Loading branch information
Centril committed Nov 21, 2019
1 parent 089229a commit 238d03b3a32e7415becbcf22748286880ce21e3f
Showing with 16 additions and 0 deletions.
  1. +16 −0 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.
You can’t perform that action at this time.