| 1 |
// This file is part of ICU4X. For terms of use, please see the file |
| 2 |
// called LICENSE at the top level of the ICU4X source tree |
| 3 |
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). |
| 4 |
|
| 5 |
use yoke::Yoke; |
| 6 |
|
| 7 |
// Test for strong protection, should pass under miri with -Zmiri-retag-fields |
| 8 |
// See https://github.com/unicode-org/icu4x/issues/3696 |
| 9 |
|
| 10 |
fn example(_: Yoke<&'static [u8], Vec<u8>>) {} |
| 11 |
|
| 12 |
#[test] |
| 13 |
fn run_test() { |
| 14 |
example(Yoke::attach_to_cart(vec![0, 1, 2], |data| data)); |
| 15 |
} |