diff options
| author | J-ZhengLi <lizheng135@huawei.com> | 2024-02-24 00:35:48 +0800 |
|---|---|---|
| committer | J-ZhengLi <lizheng135@huawei.com> | 2024-02-24 00:35:48 +0800 |
| commit | 929f746b5c19f7bf8e52cc32a3bb868fef0461e6 (patch) | |
| tree | f3981560f39105806601ec30132934ff2b8c4a7e /tests/ui/vec.fixed | |
| parent | 0d83a3a18b0efb047fdf04d3ed906154b08e58d6 (diff) | |
fix the actual bug
Diffstat (limited to 'tests/ui/vec.fixed')
| -rw-r--r-- | tests/ui/vec.fixed | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/vec.fixed b/tests/ui/vec.fixed index b318fd42f7c..9e755a82af4 100644 --- a/tests/ui/vec.fixed +++ b/tests/ui/vec.fixed @@ -217,3 +217,7 @@ fn issue_11958() { // should not lint, `String` is not `Copy` f(&vec!["test".to_owned(); 2]); } + +fn issue_12101() { + for a in &[1, 2] {} +} |
