Skip to content

Commit

Permalink
Move deref-lval test
Browse files Browse the repository at this point in the history
  • Loading branch information
poliorcetics committed Sep 21, 2020
1 parent 949c966 commit ed52c7b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
9 changes: 9 additions & 0 deletions library/alloc/tests/boxed.rs
Expand Up @@ -49,3 +49,12 @@ fn box_clone_from_ptr_stability() {
assert_eq!(copy.as_ptr() as usize, copy_raw);
}
}

#[test]
fn box_deref_lval() {
use std::cell::Cell;

let x = Box::new(Cell::new(5));
x.set(1000);
assert_eq!(x.get(), 1000);
}
11 changes: 0 additions & 11 deletions src/test/ui/deref-lval.rs

This file was deleted.

0 comments on commit ed52c7b

Please sign in to comment.