X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Ftarget%2Fconst_generics.rs;h=b30b7b58c12b975c757b32fa18aae109f0b4a8ed;hb=8984438a6faf11e0cb8e876e80f177a42a43904d;hp=f60b7eb08800ea1dc1b45ca0a8a6313c8477df70;hpb=f0c861bfa95a497bcb48f81276136f38627fcbd1;p=rust.git diff --git a/tests/target/const_generics.rs b/tests/target/const_generics.rs index f60b7eb0880..b30b7b58c12 100644 --- a/tests/target/const_generics.rs +++ b/tests/target/const_generics.rs @@ -22,3 +22,16 @@ fn foo() { } type Foo = [i32; N + 1]; + +pub trait Foo: Bar<{ Baz::COUNT }> { + const ASD: usize; +} + +// #4263 +fn const_generics_on_params< + // AAAA + const BBBB: usize, + /* CCCC */ + const DDDD: usize, +>() { +}