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: src/test/ui/associated-consts/associated-const-in-trait.stderr
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ error[E0038]: the trait `Trait` cannot be made into an object
2
2
--> $DIR/associated-const-in-trait.rs:9:6
3
3
|
4
4
LL | impl dyn Trait {
5
-
| ^^^^^^^^^ the trait `Trait` cannot be made into an object
5
+
| ^^^^^^^^^ `Trait` cannot be made into an object
6
6
|
7
7
= help: consider moving `N` to another trait
8
8
note: for a trait to be "object safe" 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: src/test/ui/associated-item/issue-48027.stderr
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ error[E0038]: the trait `Bar` cannot be made into an object
2
2
--> $DIR/issue-48027.rs:6:6
3
3
|
4
4
LL | impl dyn Bar {}
5
-
| ^^^^^^^ the trait `Bar` cannot be made into an object
5
+
| ^^^^^^^ `Bar` cannot be made into an object
6
6
|
7
7
= help: consider moving `X` to another trait
8
8
note: for a trait to be "object safe" 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>
| ^^^^^^^^^^^^^^^^^ the trait `NotObjectSafe` cannot be made into an object
5
+
| ^^^^^^^^^^^^^^^^^ `NotObjectSafe` cannot be made into an object
6
6
|
7
7
= help: consider moving `eq` to another trait
8
8
note: for a trait to be "object safe" 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>
| ^^^^^ the trait `Copy` cannot be made into an object
17
+
| ^^^^^ `Copy` cannot be made into an object
18
18
|
19
19
= note: the trait cannot be made into an object because it requires `Self: Sized`
20
20
= note: for a trait to be "object safe" 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: src/test/ui/error-codes/E0033-teach.stderr
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ error[E0038]: the trait `SomeTrait` cannot be made into an object
8
8
--> $DIR/E0033-teach.rs:8:20
9
9
|
10
10
LL | let trait_obj: &dyn SomeTrait = SomeTrait;
11
-
| ^^^^^^^^^^^^^^ the trait `SomeTrait` cannot be made into an object
11
+
| ^^^^^^^^^^^^^^ `SomeTrait` cannot be made into an object
12
12
|
13
13
note: for a trait to be "object safe" 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: src/test/ui/error-codes/E0033.stderr
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ error[E0038]: the trait `SomeTrait` cannot be made into an object
8
8
--> $DIR/E0033.rs:6:20
9
9
|
10
10
LL | let trait_obj: &dyn SomeTrait = SomeTrait;
11
-
| ^^^^^^^^^^^^^^ the trait `SomeTrait` cannot be made into an object
11
+
| ^^^^^^^^^^^^^^ `SomeTrait` cannot be made into an object
12
12
|
13
13
note: for a trait to be "object safe" 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: src/test/ui/error-codes/E0038.stderr
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ error[E0038]: the trait `Trait` cannot be made into an object
2
2
--> $DIR/E0038.rs:5:16
3
3
|
4
4
LL | fn call_foo(x: Box<dyn Trait>) {
5
-
| ^^^^^^^^^^^^^^ the trait `Trait` cannot be made into an object
5
+
| ^^^^^^^^^^^^^^ `Trait` cannot be made into an object
6
6
|
7
7
= help: consider moving `foo` to another trait
8
8
note: for a trait to be "object safe" 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