Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
14e59bb317c3c901bce83deb16ee9bfa5cc90e28
rust/tests/ui/const-generics/broken-mir-2.rs

11 lines
132 B
Rust
Raw Normal View History

Remove the usage of the LengthAtMost32 trait
2020-07-05 15:02:01 +03:00
// run-pass
Ignore automatically derived impls of `Clone` and `Debug` in dead code analysis
2021-05-21 19:35:49 +02:00
#![allow(dead_code)]
Add broken MIR regression tests
2019-05-20 23:03:38 +01:00
use std::fmt::Debug;
#[derive(Debug)]
Use const generics for array impls, restricted to 0..=32 - uses a never-stable core::array::LengthAtMost32 to bound the impls - includes a custom error message to avoid mentioning LengthAtMost32 too often - doesn't use macros for the slice implementations to avoid #62433
2019-07-05 23:59:59 -07:00
struct S<T: Debug, const N: usize>([T; N]);
Add broken MIR regression tests
2019-05-20 23:03:38 +01:00
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1933ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API