1 error: expected identifier, found keyword `fn`
2 --> $DIR/kw-in-trait-bounds.rs:3:10
4 LL | fn _f<F: fn(), G>(_: impl fn(), _: &dyn fn())
5 | ^^ expected identifier, found keyword
7 help: escape `fn` to use it as an identifier
9 LL | fn _f<F: r#fn(), G>(_: impl fn(), _: &dyn fn())
12 error: expected identifier, found keyword `fn`
13 --> $DIR/kw-in-trait-bounds.rs:3:27
15 LL | fn _f<F: fn(), G>(_: impl fn(), _: &dyn fn())
16 | ^^ expected identifier, found keyword
18 help: escape `fn` to use it as an identifier
20 LL | fn _f<F: fn(), G>(_: impl r#fn(), _: &dyn fn())
23 error: expected identifier, found keyword `fn`
24 --> $DIR/kw-in-trait-bounds.rs:3:41
26 LL | fn _f<F: fn(), G>(_: impl fn(), _: &dyn fn())
27 | ^^ expected identifier, found keyword
29 help: escape `fn` to use it as an identifier
31 LL | fn _f<F: fn(), G>(_: impl fn(), _: &dyn r#fn())
34 error: expected identifier, found keyword `fn`
35 --> $DIR/kw-in-trait-bounds.rs:17:4
38 | ^^ expected identifier, found keyword
40 help: escape `fn` to use it as an identifier
45 error: expected identifier, found keyword `struct`
46 --> $DIR/kw-in-trait-bounds.rs:24:10
48 LL | fn _g<A: struct, B>(_: impl struct, _: &dyn struct)
49 | ^^^^^^ expected identifier, found keyword
51 help: escape `struct` to use it as an identifier
53 LL | fn _g<A: r#struct, B>(_: impl struct, _: &dyn struct)
56 error: expected identifier, found keyword `struct`
57 --> $DIR/kw-in-trait-bounds.rs:24:29
59 LL | fn _g<A: struct, B>(_: impl struct, _: &dyn struct)
60 | ^^^^^^ expected identifier, found keyword
62 help: escape `struct` to use it as an identifier
64 LL | fn _g<A: struct, B>(_: impl r#struct, _: &dyn struct)
67 error: expected identifier, found keyword `struct`
68 --> $DIR/kw-in-trait-bounds.rs:24:45
70 LL | fn _g<A: struct, B>(_: impl struct, _: &dyn struct)
71 | ^^^^^^ expected identifier, found keyword
73 help: escape `struct` to use it as an identifier
75 LL | fn _g<A: struct, B>(_: impl struct, _: &dyn r#struct)
78 error: expected identifier, found keyword `struct`
79 --> $DIR/kw-in-trait-bounds.rs:38:8
82 | ^^^^^^ expected identifier, found keyword
84 help: escape `struct` to use it as an identifier
89 error[E0405]: cannot find trait `r#fn` in this scope
90 --> $DIR/kw-in-trait-bounds.rs:3:10
92 LL | fn _f<F: fn(), G>(_: impl fn(), _: &dyn fn())
93 | ^^ help: a trait with a similar name exists (notice the capitalization): `Fn`
95 ::: $SRC_DIR/core/src/ops/function.rs:LL:COL
97 LL | pub trait Fn<Args>: FnMut<Args> {
98 | ------------------------------- similarly named trait `Fn` defined here
100 error[E0405]: cannot find trait `r#fn` in this scope
101 --> $DIR/kw-in-trait-bounds.rs:17:4
104 | ^^ help: a trait with a similar name exists (notice the capitalization): `Fn`
106 ::: $SRC_DIR/core/src/ops/function.rs:LL:COL
108 LL | pub trait Fn<Args>: FnMut<Args> {
109 | ------------------------------- similarly named trait `Fn` defined here
111 error[E0405]: cannot find trait `r#fn` in this scope
112 --> $DIR/kw-in-trait-bounds.rs:3:27
114 LL | fn _f<F: fn(), G>(_: impl fn(), _: &dyn fn())
115 | ^^ help: a trait with a similar name exists (notice the capitalization): `Fn`
117 ::: $SRC_DIR/core/src/ops/function.rs:LL:COL
119 LL | pub trait Fn<Args>: FnMut<Args> {
120 | ------------------------------- similarly named trait `Fn` defined here
122 error[E0405]: cannot find trait `r#fn` in this scope
123 --> $DIR/kw-in-trait-bounds.rs:3:41
125 LL | fn _f<F: fn(), G>(_: impl fn(), _: &dyn fn())
126 | ^^ help: a trait with a similar name exists (notice the capitalization): `Fn`
128 ::: $SRC_DIR/core/src/ops/function.rs:LL:COL
130 LL | pub trait Fn<Args>: FnMut<Args> {
131 | ------------------------------- similarly named trait `Fn` defined here
133 error[E0405]: cannot find trait `r#struct` in this scope
134 --> $DIR/kw-in-trait-bounds.rs:24:10
136 LL | fn _g<A: struct, B>(_: impl struct, _: &dyn struct)
137 | ^^^^^^ help: a trait with a similar name exists (notice the capitalization): `Struct`
140 | ------------ similarly named trait `Struct` defined here
142 error[E0405]: cannot find trait `r#struct` in this scope
143 --> $DIR/kw-in-trait-bounds.rs:38:8
146 | ^^^^^^ help: a trait with a similar name exists (notice the capitalization): `Struct`
149 | ------------ similarly named trait `Struct` defined here
151 error[E0405]: cannot find trait `r#struct` in this scope
152 --> $DIR/kw-in-trait-bounds.rs:24:29
154 LL | fn _g<A: struct, B>(_: impl struct, _: &dyn struct)
155 | ^^^^^^ help: a trait with a similar name exists (notice the capitalization): `Struct`
158 | ------------ similarly named trait `Struct` defined here
160 error[E0405]: cannot find trait `r#struct` in this scope
161 --> $DIR/kw-in-trait-bounds.rs:24:45
163 LL | fn _g<A: struct, B>(_: impl struct, _: &dyn struct)
164 | ^^^^^^ help: a trait with a similar name exists (notice the capitalization): `Struct`
167 | ------------ similarly named trait `Struct` defined here
169 error: aborting due to 16 previous errors
171 For more information about this error, try `rustc --explain E0405`.