add gate tests and pacify tidy

This commit is contained in:
Ralf Jung
2021-04-19 10:15:56 +02:00
parent bd9556956a
commit 04db4abbfc
8 changed files with 98 additions and 7 deletions

View File

@@ -552,7 +552,7 @@ impl NonConstOp for UnsizingCast {
&ccx.tcx.sess.parse_sess,
sym::const_fn_unsize,
span,
"unsizing casts to types besides slices are not allowed in const fn"
"unsizing casts to types besides slices are not allowed in const fn",
)
}
}