File tree Expand file tree Collapse file tree 5 files changed +5
-10
lines changed Expand file tree Collapse file tree 5 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 11// Test that a variable of type ! can coerce to another type.
22
3- // run-fail
4- // error-pattern:explicit
3+ // check-pass
54
65#![ feature( never_type) ]
76
Original file line number Diff line number Diff line change 11// Test that we can use a ! for an argument of type !
22
3- // run-fail
4- // error-pattern:wowzers!
3+ // check-pass
54
65#![ feature( never_type) ]
76#![ allow( unreachable_code) ]
Original file line number Diff line number Diff line change 11// Test that we can explicitly cast ! to another type
22
3- // run-fail
4- // error-pattern:explicit
3+ // check-pass
54
65#![ feature( never_type) ]
76
Original file line number Diff line number Diff line change 11// Test that we can use ! as an associated type.
22
3- // run-fail
4- // error-pattern:kapow!
3+ // check-pass
54
65#![ feature( never_type) ]
76
Original file line number Diff line number Diff line change 11// Test that we can use ! as an argument to a trait impl.
22
3- // run-fail
4- // error-pattern:oh no!
3+ // check-pass
54
65#![ feature( never_type) ]
76
You can’t perform that action at this time.
0 commit comments