Closed
Description
rust/compiler/rustc_hir_analysis/src/hir_ty_lowering/bounds.rs
Lines 97 to 111 in b605c65
fn foo() -> impl ?Send {}
warning: relaxing a default bound only does something for `?Sized`; all other traits are not bound by default
--> src/lib.rs:1:18
|
1 | fn foo() -> impl ?Send {}
| ^^^^^
This should either be a (future-compat) lint or a hard-error.
Activity
lcnr commentedon Jan 21, 2025
this warning exists since pre 1.0 🤔
theemathas commentedon Jan 30, 2025
This code compiles. Is it supposed to?
theemathas commentedon Jan 30, 2025
Clearly this isn't supposed to compile, right?
lcnr commentedon Jan 30, 2025
I don't think they should, which is why I opened this issue. We should move all of these to a hard error
?Trait
bounds in various places where we unconditionally warned since 1.0 #135841Rollup merge of rust-lang#135841 - oli-obk:push-qxlnokwrkkym, r=compi…
Rollup merge of rust-lang#135841 - oli-obk:push-qxlnokwrkkym, r=compi…
1 remaining item