]>
git.proxmox.com Git - rustc.git/blob - tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.rs
1 fn foo
<const C
: usize>() {}
6 foo
<BAR
+ 3>(); //~ ERROR comparison operators cannot be chained
9 foo
<BAR
+ BAR
>(); //~ ERROR comparison operators cannot be chained
12 foo
<3 + 3>(); //~ ERROR comparison operators cannot be chained
15 foo
<BAR
- 3>(); //~ ERROR comparison operators cannot be chained
18 foo
<BAR
- BAR
>(); //~ ERROR comparison operators cannot be chained
21 foo
<100 - BAR
>(); //~ ERROR comparison operators cannot be chained
24 foo
<bar
<i32>()>(); //~ ERROR comparison operators cannot be chained
25 //~^ ERROR expected one of `;` or `}`, found `>`
28 foo
<bar
::<i32>()>(); //~ ERROR comparison operators cannot be chained
31 foo
<bar
::<i32>() + BAR
>(); //~ ERROR comparison operators cannot be chained
34 foo
<bar
::<i32>() - BAR
>(); //~ ERROR comparison operators cannot be chained
37 foo
<BAR
- bar
::<i32>()>(); //~ ERROR comparison operators cannot be chained
40 foo
<BAR
- bar
::<i32>()>(); //~ ERROR comparison operators cannot be chained
43 const fn bar
<const C
: usize>() -> usize {