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

@trait, ~trait, and &trait should be supported #3157

Closed
alexrp opened this issue Aug 8, 2012 · 2 comments
Closed

@trait, ~trait, and &trait should be supported #3157

alexrp opened this issue Aug 8, 2012 · 2 comments
Labels
A-lifetimes Area: Lifetimes / regions A-type-system Area: Type system C-enhancement Category: An issue proposing an enhancement or a PR with one.
Milestone

Comments

@alexrp
Copy link

alexrp commented Aug 8, 2012

These forms are not currently supported. Example:

trait T {
}

struct S {
    f : f32;
}

impl of T for S {
}

fn main() {
    let s = @S { f : 100.0f32 };
    let t = s as @T;
}

This does not currently work (the compiler will complain that the cast is non-scalar).

@brson
Copy link
Contributor

brson commented Aug 10, 2012

Putting this on 0.5 milestone.

@catamorphism
Copy link
Contributor

Done.

celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Dependency upgrade resulting from `cargo update`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lifetimes Area: Lifetimes / regions A-type-system Area: Type system C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

3 participants