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
The text was updated successfully, but these errors were encountered:
…mzqv, r=Veykril
internal: remove `Default` from OpQueue
`@Wilfred` and I were talking about `OpQueue` and we identified one symptom of its (relative) weirdness is that `last_op_result` returns a `T::default()`; not `Option<&T>`, which means it's not possible to distinguish between "the `OpQueue` hasn't run yet" and "the OpQueue ran, but didn't produce a result". This branch fixes that.
Hi,
I found a very strange bug. The following code won't compile:
The error is:
But if you comment the line I marked, it will compile without problem. Tested on master today http://is.gd/Si0mUC
The text was updated successfully, but these errors were encountered: