mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
changed to impl trait for type stx
This commit is contained in:
@@ -32,7 +32,7 @@ fn X(&self) -> int {
|
||||
}
|
||||
}
|
||||
|
||||
impl Point: Movable<int, int>;
|
||||
impl Movable<int, int> for Point;
|
||||
|
||||
pub fn main() {
|
||||
let p = Point{ x: 1, y: 2};
|
||||
|
||||
Reference in New Issue
Block a user