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

Wrong types reported in some let binding type errors #546

Closed
msullivan opened this issue Jun 22, 2011 · 2 comments
Closed

Wrong types reported in some let binding type errors #546

msullivan opened this issue Jun 22, 2011 · 2 comments
Labels
A-type-system Area: Type system

Comments

@msullivan
Copy link
Contributor

Trying to compile the program
fn main() {
auto b = "hi";
let int i = b;
}

Results in the error:
error: mismatched types: expected str but found str (types differ)

@brson
Copy link
Contributor

brson commented Jun 22, 2011

Probably the same as #516

@msullivan
Copy link
Contributor Author

Closing this as a dupe then.

keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
Add support for the `accept4` system call for FreeBSD* & NetBSD*

As outlined in rust-lang#540.

However since support for this system call seems to be committed, but not yet released in NetBSD & BitRig (is BitRig actually still be developed at all, btw?), I'm not sure whether it wouldn't be a better idea to only add OpenBSD support instead?
What's the official policy on this?
pdietl pushed a commit to pdietl/rust that referenced this issue Apr 23, 2020
flip1995 pushed a commit to flip1995/rust that referenced this issue Feb 10, 2022
Add lint `transmute_undefined_repr`

Partially implements rust-lang#3999 and rust-lang#546

This doesn't consider `enum`s at all right now as those are going to be a pain to deal with. This also allows `#[repr(Rust)]` structs with only one non-zero sized fields. I think those are technically undefined when transmuted.

changelog: Add lint `transmute_undefined_repr`
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

2 participants