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`
94 --> $SRC_DIR/core/src/ops/function.rs:LL:COL
96 = note: similarly named trait `Fn` defined here
98 error[E0405]: cannot find trait `r#fn` in this scope
99 --> $DIR/kw-in-trait-bounds.rs:17:4
102 | ^^ help: a trait with a similar name exists (notice the capitalization): `Fn`
103 --> $SRC_DIR/core/src/ops/function.rs:LL:COL
105 = note: similarly named trait `Fn` defined here
107 error[E0405]: cannot find trait `r#fn` in this scope
108 --> $DIR/kw-in-trait-bounds.rs:3:27
110 LL | fn _f<F: fn(), G>(_: impl fn(), _: &dyn fn())
111 | ^^ help: a trait with a similar name exists (notice the capitalization): `Fn`
112 --> $SRC_DIR/core/src/ops/function.rs:LL:COL
114 = note: similarly named trait `Fn` defined here
116 error[E0405]: cannot find trait `r#fn` in this scope
117 --> $DIR/kw-in-trait-bounds.rs:3:41
119 LL | fn _f<F: fn(), G>(_: impl fn(), _: &dyn fn())
120 | ^^ help: a trait with a similar name exists (notice the capitalization): `Fn`
121 --> $SRC_DIR/core/src/ops/function.rs:LL:COL
123 = note: similarly named trait `Fn` defined here
125 error[E0405]: cannot find trait `r#struct` in this scope
126 --> $DIR/kw-in-trait-bounds.rs:24:10
128 LL | fn _g<A: struct, B>(_: impl struct, _: &dyn struct)
129 | ^^^^^^ help: a trait with a similar name exists (notice the capitalization): `Struct`
132 | ------------ similarly named trait `Struct` defined here
134 error[E0405]: cannot find trait `r#struct` in this scope
135 --> $DIR/kw-in-trait-bounds.rs:38:8
138 | ^^^^^^ help: a trait with a similar name exists (notice the capitalization): `Struct`
141 | ------------ similarly named trait `Struct` defined here
143 error[E0405]: cannot find trait `r#struct` in this scope
144 --> $DIR/kw-in-trait-bounds.rs:24:29
146 LL | fn _g<A: struct, B>(_: impl struct, _: &dyn struct)
147 | ^^^^^^ help: a trait with a similar name exists (notice the capitalization): `Struct`
150 | ------------ similarly named trait `Struct` defined here
152 error[E0405]: cannot find trait `r#struct` in this scope
153 --> $DIR/kw-in-trait-bounds.rs:24:45
155 LL | fn _g<A: struct, B>(_: impl struct, _: &dyn struct)
156 | ^^^^^^ help: a trait with a similar name exists (notice the capitalization): `Struct`
159 | ------------ similarly named trait `Struct` defined here
161 error: aborting due to 16 previous errors
163 For more information about this error, try `rustc --explain E0405`.