You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be clear: I think the expected behavior here is an error
because the T is not in scope for nested items. So the
code ought to be enum<T> { Foo(T) } (similar to how a nested fn couldn't reference T)
Activity
metajack commentedon Jun 20, 2013
This still happens on today's master.
Nominating for production ready.
nikomatsakis commentedon Aug 22, 2013
To be clear: I think the expected behavior here is an error
because the
T
is not in scope for nested items. So thecode ought to be
enum<T> { Foo(T) }
(similar to how a nestedfn
couldn't referenceT
)graydon commentedon Aug 22, 2013
just a bug, removing milestone/nomination.
huonw commentedon Dec 19, 2013
Triage, we're still creating types that are apparently fictitious and crashing.
flaper87 commentedon Mar 12, 2014
This no longer ICE, it now outputs an error:
error: missing type param T in the substitution of T
Adding the type parameter to the enum succeeds. Flagging as needs test.
Tests for issue 5997 failure and success conditions.
auto merge of #13525 : Ryman/rust/issue_5997, r=alexcrichton
Auto merge of rust-lang#5997 - giraffate:fix_fp_about_clone_in_same_i…
Auto merge of rust-lang#6115 - ebroto:changelog_1_48, r=flip1995