Skip to content

Commit 86ac65c

Browse files
committed
Bless you
1 parent b663892 commit 86ac65c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/ui/mismatched_types/const-fn-in-trait.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
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
33
|
44
LL | const fn g();
55
| ^^^^^ functions in traits cannot be const
66

77
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
99
|
1010
LL | const fn f() -> u32 { 22 }
1111
| ^^^^^ functions in traits cannot be const

src/test/ui/mismatched_types/trait-impl-fn-incompatibility.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
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
33
|
44
LL | fn foo(x: u16);
55
| --- type in trait
@@ -11,7 +11,7 @@ LL | fn foo(x: i16) { }
1111
found fn pointer `fn(i16)`
1212

1313
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
1515
|
1616
LL | fn bar(&mut self, bar: &mut Bar);
1717
| -------- type in trait

0 commit comments

Comments
 (0)