Fixed errors in libstd.
This commit is contained in:
parent
d3236a85ff
commit
9c854db82b
3 changed files with 8 additions and 8 deletions
|
@ -514,7 +514,7 @@ mod tests {
|
|||
#[test]
|
||||
fn downcasting() {
|
||||
let mut a = A;
|
||||
let mut a = &mut a as &mut (Error + 'static);
|
||||
let a = &mut a as &mut (Error + 'static);
|
||||
assert_eq!(a.downcast_ref::<A>(), Some(&A));
|
||||
assert_eq!(a.downcast_ref::<B>(), None);
|
||||
assert_eq!(a.downcast_mut::<A>(), Some(&mut A));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue