Skip to content

Commit

Permalink
Add WF test for never type
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwhit committed May 21, 2020
1 parent de32339 commit 7a87e30
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ mod implied_bounds;
mod impls;
mod misc;
mod negation;
mod never;
mod object_safe;
mod projection;
mod refs;
Expand Down
13 changes: 13 additions & 0 deletions tests/test/never.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use super::*;

#[test]
fn never_is_well_formed() {
test! {
program { }
goal {
WellFormed(!)
} yields {
"Unique"
}
}
}

0 comments on commit 7a87e30

Please sign in to comment.