Skip to content

forbid dyn Trait in patterns#71038

Merged
bors merged 2 commits intorust-lang:masterfrom
lcnr:dyn_trait_structural_match
May 4, 2020
Merged

forbid dyn Trait in patterns#71038
bors merged 2 commits intorust-lang:masterfrom
lcnr:dyn_trait_structural_match

Conversation

@lcnr
Copy link
Copy Markdown
Contributor

@lcnr lcnr commented Apr 11, 2020

Do not allow &dyn Trait as a generic const parameters.
This also changes dyn trait in pattern from ICE to error.

closes #63322
closes #70972

r? @eddyb

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

F-const_generics `#![feature(const_generics)]` S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

error: internal compiler error: src/librustc_mir_build/hair/pattern/_match.rs:318: cannot deref ByRef Closures in const generics cause ICE

9 participants