You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/associated-consts/associated-const-in-trait.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0038]: the trait `Trait` cannot be made into an object
4
4
LL | impl dyn Trait {
5
5
| ^^^^^^^^^ `Trait` cannot be made into an object
6
6
|
7
-
note: for a trait to be "dyn-compatible" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
7
+
note: for a trait to be dyncompatible it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
8
8
--> $DIR/associated-const-in-trait.rs:4:11
9
9
|
10
10
LL | trait Trait {
@@ -19,7 +19,7 @@ error[E0038]: the trait `Trait` cannot be made into an object
19
19
LL | const fn n() -> usize { Self::N }
20
20
| ^^^^ `Trait` cannot be made into an object
21
21
|
22
-
note: for a trait to be "dyn-compatible" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
22
+
note: for a trait to be dyncompatible it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
Copy file name to clipboardExpand all lines: tests/ui/associated-item/issue-48027.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0038]: the trait `Bar` cannot be made into an object
4
4
LL | impl dyn Bar {}
5
5
| ^^^^^^^ `Bar` cannot be made into an object
6
6
|
7
-
note: for a trait to be "dyn-compatible" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
7
+
note: for a trait to be dyncompatible it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
0 commit comments