File tree 2 files changed +4
-4
lines changed
src/test/ui/mismatched_types
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
error[E0379]: functions in traits cannot be declared const
2
- --> $DIR/const-fn-in-trait.rs:7 :5
2
+ --> $DIR/const-fn-in-trait.rs:5 :5
3
3
|
4
4
LL | const fn g();
5
5
| ^^^^^ functions in traits cannot be const
6
6
7
7
error[E0379]: functions in traits cannot be declared const
8
- --> $DIR/const-fn-in-trait.rs:11 :5
8
+ --> $DIR/const-fn-in-trait.rs:9 :5
9
9
|
10
10
LL | const fn f() -> u32 { 22 }
11
11
| ^^^^^ functions in traits cannot be const
Original file line number Diff line number Diff line change 1
1
error[E0053]: method `foo` has an incompatible type for trait
2
- --> $DIR/trait-impl-fn-incompatibility.rs:11 :15
2
+ --> $DIR/trait-impl-fn-incompatibility.rs:9 :15
3
3
|
4
4
LL | fn foo(x: u16);
5
5
| --- type in trait
@@ -11,7 +11,7 @@ LL | fn foo(x: i16) { }
11
11
found fn pointer `fn(i16)`
12
12
13
13
error[E0053]: method `bar` has an incompatible type for trait
14
- --> $DIR/trait-impl-fn-incompatibility.rs:12 :28
14
+ --> $DIR/trait-impl-fn-incompatibility.rs:10 :28
15
15
|
16
16
LL | fn bar(&mut self, bar: &mut Bar);
17
17
| -------- type in trait
You can’t perform that action at this time.
0 commit comments