On Sat, Oct 26, 2013 at 5:00 PM, Ramakrishnan Muthukrishnan
<[email protected]> wrote:
> Hi,
>
> This is my first post to the list. Had been playing with Rust for the
> past one week and it is very nice so far. I hope this is the list for
> "users" of Rust as well (as opposed to developers of Rust). I
> apologise if it is the wrong place to ask newbie questions..
>
> I am trying to follow the documentation on std::path and am trying to
> create a path, just like it is described in the documentation:
>
> <http://static.rust-lang.org/doc/master/std/path/index.html>
>
> use std::path;
>
> fn main() {
>     let mut path = Path::new("/tmp/path");
> }

Okay, I could move on by doing:

  let mut path = Path("/tmp/path");

I also should have been looking at the manual for 0.8 version instead
of master, as I am running 0.8.

Thanks
Ramakrishnan
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to