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
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/ui/const-generics/broken-mir-2.rs

11 lines
133 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00: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: 1642ms Template: 3ms
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