mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
changed to impl trait for type stx
This commit is contained in:
parent
77da055345
commit
9455eaf77b
@ -32,7 +32,7 @@ impl Positioned<int> for Point {
|
||||
}
|
||||
}
|
||||
|
||||
impl Point: Movable<int, int>;
|
||||
impl Movable<int, int> for Point;
|
||||
|
||||
pub fn main() {
|
||||
let p = Point{ x: 1, y: 2};
|
||||
|
Loading…
Reference in New Issue
Block a user