You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Passing a non-const trait function item value to a const fn is no longer allowed in a constant context #104155
I expected to see this happen: Successful compilation
Instead, this happened:
error[E0277]: the trait bound `Box<u32>: Default` is not satisfied
--> src/lib.rs:1:15
|
1 | const _: () = core::mem::forget(Box::<u32>::default);
| ^^^^^^^^^^^^^^^^^ the trait `~const Default` is not implemented for `Box<u32>`
|
note: the trait `Default` is implemented for `Box<u32>`, but that implementation is not `const`
--> src/lib.rs:1:15
|
1 | const _: () = core::mem::forget(Box::<u32>::default);
| ^^^^^^^^^^^^^^^^^
Activity
jruderman commentedon Nov 8, 2022
This became an error due to #100982 (@fee1-dead, @oli-obk).
Bisect info
searched nightlies: from nightly-2022-09-18 to nightly-2022-11-07
regressed nightly: nightly-2022-09-23
searched commit range: 9062b78...e7119a0
regressed commit: 7a8636c
bisected with cargo-bisect-rustc v0.6.4
Host triple:
x86_64-apple-darwinI used
cargo bisect-rustc --regress erroron the following fileinquisitivecrystal commentedon Nov 9, 2022
Assigning priority as discussed by the Prioritization Working Group.
Auto merge of rust-lang#104180 - fee1-dead-contrib:fix-wf-fndef, r=ol…
fee1-dead commentedon Nov 9, 2022
awaiting beta backport
fix(bind): wrap `Default::default` in a closure when passing to `Bind…
Revert "fix(bind): wrap `Default::default` in a closure when passing …
yvt commentedon Nov 23, 2022
Can this be closed now that beta backport (#104447) is complete?