(&self)
| 1333 | } |
| 1334 | |
| 1335 | /// Test that it is possible to borrow local data immutably within deeply |
| 1336 | /// nested scopes. This is also mostly here to ensure stuff like this |
| 1337 | /// compiles. |
| 1338 | #[test] |
| 1339 | fn scope_borrow_twice() { |
| 1340 | static THREAD_POOL: ThreadPool = ThreadPool::new(); |
| 1341 | THREAD_POOL.resize_to_available(); |
| 1342 | |
| 1343 | let counter = AtomicU8::new(0); |
no outgoing calls