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/defaults/simple-defaults.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
255 B
Rust
Raw Normal View History

loosen ordering restricts for `const_generics_defaults`
2021-04-18 14:31:00 +02:00
//@ run-pass
// Checks that type param defaults are allowed after const params.
Change Ord impl for ParamKindOrd Updated tests and error msgs Update stderr from test Update w/ lcnr comments Change some tests around, and also updated Ord implementation for ParamKindOrd Update w/ nits from lcnr
2020-08-06 08:22:32 +00:00
#![allow(dead_code)]
struct FixedOutput<'a, const N: usize, T=u32> {
Prefer 4 spaces
2021-03-29 17:32:27 +09:00
out: &'a [T; N],
Change Ord impl for ParamKindOrd Updated tests and error msgs Update stderr from test Update w/ lcnr comments Change some tests around, and also updated Ord implementation for ParamKindOrd Update w/ nits from lcnr
2020-08-06 08:22:32 +00:00
}
trait FixedOutputter {
Prefer 4 spaces
2021-03-29 17:32:27 +09:00
fn out(&self) -> FixedOutput<'_, 10>;
Change Ord impl for ParamKindOrd Updated tests and error msgs Update stderr from test Update w/ lcnr comments Change some tests around, and also updated Ord implementation for ParamKindOrd Update w/ nits from lcnr
2020-08-06 08:22:32 +00:00
}
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1236ms 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