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
I found a very strange bug. The following code won't compile:
typeEntities = Box<Entity+'static>;traitEntity{}enumShape{Box(f64,f64),// <--- this line breaks compilation}fnmain(){}
The error is:
a.rs:1:17: 1:36 error: found value name used as a type: DefVariant(DefId { krate: 0, node: 13 }, DefId { krate: 0, node: 14 }, false)
a.rs:1 type Entities = Box<Entity+'static>;
^~~~~~~~~~~~~~~~~~~
But if you comment the line I marked, it will compile without problem. Tested on master today http://is.gd/Si0mUC