Skip to content
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

rustc should offer a hint when trying to coerce a fat pointer into a thin pointer #4893

Closed
brson opened this issue Feb 12, 2013 · 3 comments
Closed
Labels
A-typesystem Area: The type system

Comments

@brson
Copy link
Contributor

brson commented Feb 12, 2013

It's not immediately obvious why ~[int] won't borrow to &T. This situation comes up a lot. It should not be hard for the compiler to notice this and tell you.

@catamorphism
Copy link
Contributor

Nominating for milestone 5, production-ready. I agree that this can be very confusing for new Rust programmers.

@nikomatsakis
Copy link
Contributor

Would be a moot point if #6308 goes in

@graydon
Copy link
Contributor

graydon commented May 16, 2013

dupe of #6308

@graydon graydon closed this as completed May 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-typesystem Area: The type system
Projects
None yet
Development

No branches or pull requests

4 participants