isabel

Results comments of isabel

Not sure under what circumstances issue-2063.rs was originally `xfail`ed, but as of now it's missing `#[feature(managed_boxes)];` and emits an extra error: "type `t` does not implement any method in scope...

This code triggers the same infinite recursion in type_structurally_contains: ``` rust enum E { A, B(Bad) } struct Bad { x: Bad } ```

I have a fix for this written, in case anyone is wondering whether to start working on it. I'll submit a pull request soon.

@bblum's example is actually fixed by adding a non-representable error for structs (pull request #11839, issue #3779). Here is a new minimal example for this issue, usable as a test:...

I've started looking at this. I figured I'd try to clear up the design first. Here's my understanding: ## Basics Trait objects (spelled as `&Trait`) should be upcastable to trait...

Looks like [RFC 401](https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md) answered my first question: this is supposed to be an implicit coercion. See also: rust-lang/rust#18469, the tracking issue for RFC 401, and rust-lang/rust#18600, which deals with...

[RFC pull request 250](https://github.com/rust-lang/rfcs/pull/250) (postponed) dealt with this, but alongside proposals for associated fields on traits, opt-in internal vtables, and other features. The [upcasting section of that proposal](https://github.com/Kimundi/rfcs/blob/associated_field_inheritance/active/0000-associated-field-inheritance.md#upcasting) is basically...

Thanks for the response! I started [drafting an RFC](https://github.com/typelist/rfcs/blob/upcast/text/0000-trait-upcasting.md) based on part of RFC 250. Comments or revisions welcome. (Should we keep communicating through this issue, or some other way?)...