diff options
| author | Philipp Krones <hello@philkrones.com> | 2023-08-24 21:32:12 +0200 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2023-08-24 21:32:12 +0200 |
| commit | 7137a09806171e75b54c5fb70bf629a55ff04d8b (patch) | |
| tree | dcf4ea07d714ea0b97469e3e98c0cb74f92821ce /src/tools/clippy/tests/ui/tuple_array_conversions.rs | |
| parent | aa5dbee3ebff8703456e8be3b5fb368fc68fe0d1 (diff) | |
| parent | 080b587854a73f2a8cbaecff1884860a78e2ff37 (diff) | |
| download | rust-7137a09806171e75b54c5fb70bf629a55ff04d8b.tar.gz rust-7137a09806171e75b54c5fb70bf629a55ff04d8b.zip | |
Merge commit '080b587854a73f2a8cbaecff1884860a78e2ff37' into clippyup
Diffstat (limited to 'src/tools/clippy/tests/ui/tuple_array_conversions.rs')
| -rw-r--r-- | src/tools/clippy/tests/ui/tuple_array_conversions.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tools/clippy/tests/ui/tuple_array_conversions.rs b/src/tools/clippy/tests/ui/tuple_array_conversions.rs index 569415acbce..ca79cc104f2 100644 --- a/src/tools/clippy/tests/ui/tuple_array_conversions.rs +++ b/src/tools/clippy/tests/ui/tuple_array_conversions.rs @@ -1,4 +1,4 @@ -//@aux-build:proc_macros.rs:proc-macro +//@aux-build:proc_macros.rs #![allow(clippy::no_effect, clippy::useless_vec, unused)] #![warn(clippy::tuple_array_conversions)] @@ -82,6 +82,11 @@ fn main() { [a, c]; let [[a, b], [c, d]] = [[1, 2], [3, 4]]; (a, c); + // Array length is not usize (#11144) + fn generic_array_length<const N: usize>() { + let src = [0; N]; + let dest: (u8,) = (src[0],); + } } #[clippy::msrv = "1.70.0"] |
