-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Casting to a trait doesn't auto-coerce to a &T type #3794
Labels
Comments
Is this fixed? |
Not yet (tested in d2ad028 ) |
I have a fix. Running tests. |
ghost
assigned catamorphism
Dec 13, 2012
Pending review: #4178 |
Not critical for 0.6; removing milestone |
Nominating for milestone 5 (production-ready) |
Still a problem, but here is the updated test case:
which produces
|
accepted for production-ready milestone |
RalfJung
pushed a commit
to RalfJung/rust
that referenced
this issue
Aug 10, 2024
allow all code to call getuid() Fixes rust-lang/miri#3753
RalfJung
pushed a commit
to RalfJung/rust
that referenced
this issue
Aug 18, 2024
allow all code to call getuid() Fixes rust-lang/miri#3753
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's an example:
https://gist.github.com/3907509
It seems that even if I produce a proper boxed type
@T
, rust 0.4 cannot coerce that type to a&T
.Felix is putting the contents of the above linked gist so that people using ghi can see them readily:
test.rs:
output:
The text was updated successfully, but these errors were encountered: