I’m new to rust, so I dont’t know if I did something wrong, or this is a bug.
I tried to run the the test for the documention like descirbed here
/// Adds one to the number given.
///
/// # Examples
///
/// ```
/// let five = 5;
///
/// assert_eq!(6, add_one(five));
/// ```
pub fn add_one(x: i32) > i32 {
x + 1
}
but I got this error
 src\lib.rs  add_one (line 9) stdout 
error[E0425]: cannot find function `add_one` in this scope
> <anon>:4:15

4  assert_eq!(6, add_one(five));
 ^^^^^^^ not found in this scope
Used cargo version “cargo 0.20.0 (a60d185c8 20170713)”