]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/never_type/issue-52443.stderr
Only allow ~const bounds for traits with #[const_trait]
[rust.git] / src / test / ui / never_type / issue-52443.stderr
index 3c0daa4c55f017b39ece743b5d2e666600688ac0..0910e9ad77a846a00e90a4a53b43f89998855eec 100644 (file)
@@ -47,8 +47,8 @@ LL |     [(); { for _ in 0usize.. {}; 0}];
 note: impl defined here, but it is not `const`
   --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
    |
-LL | impl<I: ~const Iterator> const IntoIterator for I {
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL | impl<I: Iterator> const IntoIterator for I {
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: calls in constants are limited to constant functions, tuple structs and tuple variants
 
 error[E0658]: mutable references are not allowed in constants