File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ fn test_generic_mismatch() {
81
81
}
82
82
83
83
#[ test]
84
+ /// This test is the short version of `test_holds`, skipping
85
+ /// substituting and directly going to a rigid constant.
84
86
fn test_rigid_const_bound ( ) {
85
87
expect_test:: expect![ [ r#"
86
88
Ok(
@@ -97,6 +99,8 @@ fn test_rigid_const_bound() {
97
99
}
98
100
99
101
#[ test]
102
+ /// This test is the short version of `test_generic_mismatch`, skipping
103
+ /// substituting and directly going to a wrong constant.
100
104
fn test_nonsense_rigid_const_bound ( ) {
101
105
expect_test:: expect![ [ r#"
102
106
Err(
@@ -119,6 +123,8 @@ fn test_nonsense_rigid_const_bound() {
119
123
}
120
124
121
125
#[ test]
126
+ /// This test is wrong, but it's also not something rustc ever generates.
127
+ /// Types on const generics only get exactly one `type_of_const` bound.
122
128
fn test_multiple_type_of_const ( ) {
123
129
expect_test:: expect![ [ r#"
124
130
Ok(
You can’t perform that action at this time.
0 commit comments