-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICE with generics. #94680
Comments
This is due to an (almost) trivially unsatisfiable bound. Minimized: pub fn clone(it: &mut ()) -> &mut ()
where
for<'any> &'any mut (): Clone,
{
it.clone()
} |
Played around a little and found that:
|
Gonna claim this because I've been thinking about it recently: #93008, https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/What.20to.20do.20with.20trivially-false.20trivial_bounds @rustbot claim |
…r=Mark-Simulacrum Add some tests for impossible bounds Adds test for rust-lang#93008 Adds test for rust-lang#94680 Closes rust-lang#94999 Closes rust-lang#95640
…r=Mark-Simulacrum Add some tests for impossible bounds Adds test for rust-lang#93008 Adds test for rust-lang#94680 Closes rust-lang#94999 Closes rust-lang#95640
…r=Mark-Simulacrum Add some tests for impossible bounds Adds test for rust-lang#93008 Adds test for rust-lang#94680 Closes rust-lang#94999 Closes rust-lang#95640
Code
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=3f6d8b903da8b01348137330371e7ff5
Meta
rustc --version --verbose
:Error output
The text was updated successfully, but these errors were encountered: