librustc: Ensure that type parameters are in the right positions in paths.
This removes the stacking of type parameters that occurs when invoking trait methods, and fixes all places in the standard library that were relying on it. It is somewhat awkward in places; I think we'll probably want something like the `Foo::<for T>::new()` syntax.
This commit is contained in:
parent
3b6314c39b
commit
8693943676
70 changed files with 1130 additions and 528 deletions
|
@ -100,7 +100,7 @@ fn test_basic() {
|
|||
#[test]
|
||||
#[should_fail]
|
||||
fn test_take_empty() {
|
||||
let value_cell = Cell::new_empty::<~int>();
|
||||
let value_cell: Cell<~int> = Cell::new_empty();
|
||||
value_cell.take();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue