1 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
2 --> $DIR/const-arg-in-const-arg.rs:18:23
4 LL | let _: [u8; faz::<'a>(&())];
7 note: the late bound lifetime parameter is introduced here
8 --> $DIR/const-arg-in-const-arg.rs:8:14
10 LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
13 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
14 --> $DIR/const-arg-in-const-arg.rs:21:23
16 LL | let _: [u8; faz::<'b>(&())];
19 note: the late bound lifetime parameter is introduced here
20 --> $DIR/const-arg-in-const-arg.rs:8:14
22 LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
25 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
26 --> $DIR/const-arg-in-const-arg.rs:41:24
28 LL | let _: Foo<{ faz::<'a>(&()) }>;
31 note: the late bound lifetime parameter is introduced here
32 --> $DIR/const-arg-in-const-arg.rs:8:14
34 LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
37 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
38 --> $DIR/const-arg-in-const-arg.rs:44:24
40 LL | let _: Foo<{ faz::<'b>(&()) }>;
43 note: the late bound lifetime parameter is introduced here
44 --> $DIR/const-arg-in-const-arg.rs:8:14
46 LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
49 error: unconstrained generic constant
50 --> $DIR/const-arg-in-const-arg.rs:13:12
52 LL | let _: [u8; foo::<T>()];
55 = help: try adding a `where` bound using this expression: `where [(); foo::<T>()]:`
57 error: unconstrained generic constant
58 --> $DIR/const-arg-in-const-arg.rs:15:12
60 LL | let _: [u8; bar::<N>()];
63 = help: try adding a `where` bound using this expression: `where [(); bar::<N>()]:`
65 error: unconstrained generic constant
66 --> $DIR/const-arg-in-const-arg.rs:36:12
68 LL | let _: Foo<{ foo::<T>() }>;
71 = help: try adding a `where` bound using this expression: `where [(); { foo::<T>() }]:`
73 error: unconstrained generic constant
74 --> $DIR/const-arg-in-const-arg.rs:38:12
76 LL | let _: Foo<{ bar::<N>() }>;
79 = help: try adding a `where` bound using this expression: `where [(); { bar::<N>() }]:`
81 error: unconstrained generic constant
82 --> $DIR/const-arg-in-const-arg.rs:25:17
84 LL | let _ = [0; foo::<T>()];
87 = help: try adding a `where` bound using this expression: `where [(); foo::<T>()]:`
89 error: unconstrained generic constant
90 --> $DIR/const-arg-in-const-arg.rs:27:17
92 LL | let _ = [0; bar::<N>()];
95 = help: try adding a `where` bound using this expression: `where [(); bar::<N>()]:`
97 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
98 --> $DIR/const-arg-in-const-arg.rs:30:23
100 LL | let _ = [0; faz::<'a>(&())];
103 note: the late bound lifetime parameter is introduced here
104 --> $DIR/const-arg-in-const-arg.rs:8:14
106 LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
109 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
110 --> $DIR/const-arg-in-const-arg.rs:33:23
112 LL | let _ = [0; faz::<'b>(&())];
115 note: the late bound lifetime parameter is introduced here
116 --> $DIR/const-arg-in-const-arg.rs:8:14
118 LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
121 error: unconstrained generic constant
122 --> $DIR/const-arg-in-const-arg.rs:47:19
124 LL | let _ = Foo::<{ foo::<T>() }>;
127 = help: try adding a `where` bound using this expression: `where [(); { foo::<T>() }]:`
129 error: unconstrained generic constant
130 --> $DIR/const-arg-in-const-arg.rs:49:19
132 LL | let _ = Foo::<{ bar::<N>() }>;
135 = help: try adding a `where` bound using this expression: `where [(); { bar::<N>() }]:`
137 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
138 --> $DIR/const-arg-in-const-arg.rs:52:27
140 LL | let _ = Foo::<{ faz::<'a>(&()) }>;
143 note: the late bound lifetime parameter is introduced here
144 --> $DIR/const-arg-in-const-arg.rs:8:14
146 LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
149 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
150 --> $DIR/const-arg-in-const-arg.rs:55:27
152 LL | let _ = Foo::<{ faz::<'b>(&()) }>;
155 note: the late bound lifetime parameter is introduced here
156 --> $DIR/const-arg-in-const-arg.rs:8:14
158 LL | const fn faz<'a>(_: &'a ()) -> usize { 13 }
161 error: aborting due to 16 previous errors