diff options
Diffstat (limited to 'src/libstd/thread')
| -rw-r--r-- | src/libstd/thread/local.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/thread/local.rs b/src/libstd/thread/local.rs index 023c6b26cbc..1bf1b09681c 100644 --- a/src/libstd/thread/local.rs +++ b/src/libstd/thread/local.rs @@ -716,7 +716,7 @@ mod dynamic_tests { thread_local!(static FOO: RefCell<HashMap<i32, i32>> = map()); FOO.with(|map| { - assert_eq!(map.borrow()[1], 2); + assert_eq!(map.borrow()[&1], 2); }); } |
