user annotations on associated consts can be ill-formed #104763
Labels
A-borrow-checker
Area: The borrow checker
A-NLL
Area: Non-lexical lifetimes (NLL)
C-bug
Category: This is a bug.
NLL-sound
Working towards the "invalid code does not compile" goal
T-types
Relevant to the types team, which will review and decide on the PR/issue.
The following should fail: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=55b6d108fe6712536a9c7a7abea56bc0
It should require a
T: 'static
bound ontest
.This is unsound but can't currently be exploited because of #98852. A potential exploit would be like:
@rustbot label T-types C-bug A-NLL NLL-sound A-borrow-checker
@rustbot claim
The text was updated successfully, but these errors were encountered: