未验证 提交 4821663a 编写于 作者: R Ralf Jung 提交者: GitHub

Full stop

Co-Authored-By: NMazdak Farrokhzad <twingoow@gmail.com>
上级 a9efa738
......@@ -1949,7 +1949,7 @@ fn ty_find_init_error<'tcx>(
Adt(..) if ty.is_box() => Some((format!("`Box` must be non-null"), None)),
FnPtr(..) => Some((format!("Function pointers must be non-null"), None)),
Never => Some((format!("The never type (`!`) has no valid value"), None)),
// Primitive types with other constraints
// Primitive types with other constraints.
Bool if init == InitKind::Uninit =>
Some((format!("Booleans must be `true` or `false`"), None)),
Char if init == InitKind::Uninit =>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册