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
fails to compile (after #33572) despite being “just” all-right because compiler demands for a 'static lifetime on T, which is completely unnecessary (constants are instantiated inline).
Expected results: should compile.
The text was updated successfully, but these errors were encountered:
nagisa
changed the title
Constants should not require 'static bount for their typeparams
Constants should not require 'static bound for their typeparams
May 12, 2016
…-const-ty-refs, r=eddyb
Remove 'static bound in assoc const test.
Types do not have to be `'static` to be referenced in
associated consts.
Fixes#33573.
Code like
fails to compile (after #33572) despite being “just” all-right because compiler demands for a
'static
lifetime onT
, which is completely unnecessary (constants are instantiated inline).Expected results: should compile.
The text was updated successfully, but these errors were encountered: