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-1
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-1
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-1
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-1
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-1
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>
| ^^^^^^^^^^^^^^^^^^^ the trait `NonObjectSafe1` cannot be made into an object
5
+
| ^^^^^^^^^^^^^^^^^^^ `NonObjectSafe1` cannot be made into an object
6
6
|
7
7
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 `NonObjectSafe2` cannot be made into an object
19
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `NonObjectSafe2` cannot be made into an object
20
20
|
21
21
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 `NonObjectSafe3` cannot be made into an object
41
+
| ^^^^^^^^^^^^^^^^^^^^^^^ `NonObjectSafe3` cannot be made into an object
42
42
|
43
43
= help: consider moving `foo` to another trait
44
44
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>
@@ -53,7 +53,7 @@ error[E0038]: the trait `NonObjectSafe4` cannot be made into an object
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `NonObjectSafe4` cannot be made into an object
56
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `NonObjectSafe4` cannot be made into an object
57
57
|
58
58
= help: consider moving `foo` to another trait
59
59
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>
@@ -68,7 +68,7 @@ error[E0038]: the trait `NonObjectSafe1` cannot be made into an object
| ^^^^^^^^^^^^^^^^^^ the trait `NonObjectSafe1` cannot be made into an object
71
+
| ^^^^^^^^^^^^^^^^^^ `NonObjectSafe1` cannot be made into an object
72
72
|
73
73
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
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
27
+
| ^^^^^^^^^^^^^^^^^^^^^^ `NotObjectSafe` cannot be made into an object
28
28
|
29
29
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/issues/issue-18959.stderr
+1-1
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-18959.rs:11:11
3
3
|
4
4
LL | fn foo(b: &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 `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>
Copy file name to clipboardExpand all lines: src/test/ui/issues/issue-19380.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ error[E0038]: the trait `Qiz` cannot be made into an object
2
2
--> $DIR/issue-19380.rs:11:9
3
3
|
4
4
LL | foos: &'static [&'static (dyn Qiz + 'static)]
5
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Qiz` cannot be made into an object
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Qiz` cannot be made into an object
6
6
|
7
7
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/issues/issue-19538.stderr
+2-2
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-19538.rs:17:15
3
3
|
4
4
LL | let test: &mut dyn Bar = &mut thing;
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 `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>
@@ -18,7 +18,7 @@ error[E0038]: the trait `Bar` cannot be made into an object
18
18
--> $DIR/issue-19538.rs:17:30
19
19
|
20
20
LL | let test: &mut dyn Bar = &mut thing;
21
-
| ^^^^^^^^^^ the trait `Bar` cannot be made into an object
21
+
| ^^^^^^^^^^ `Bar` cannot be made into an object
22
22
|
23
23
= help: consider moving `foo` to another trait
24
24
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/issues/issue-20692.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ error[E0038]: the trait `Array` cannot be made into an object
2
2
--> $DIR/issue-20692.rs:7:5
3
3
|
4
4
LL | &dyn Array;
5
-
| ^^^^^^^^^^ the trait `Array` cannot be made into an object
5
+
| ^^^^^^^^^^ `Array` cannot be made into an object
6
6
|
7
7
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>
8
8
--> $DIR/issue-20692.rs:1:14
@@ -17,7 +17,7 @@ error[E0038]: the trait `Array` cannot be made into an object
17
17
--> $DIR/issue-20692.rs:4:13
18
18
|
19
19
LL | let _ = x
20
-
| ^ the trait `Array` cannot be made into an object
20
+
| ^ `Array` cannot be made into an object
21
21
|
22
22
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/issues/issue-26056.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@ error[E0038]: the trait `Map` cannot be made into an object
2
2
--> $DIR/issue-26056.rs:20:13
3
3
|
4
4
LL | as &dyn Map<Key=u32,MapValue=u32>;
5
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Map` cannot be made into an object
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Map` cannot be made into an object
6
6
|
7
7
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>
8
8
--> $DIR/issue-26056.rs:9:12
9
9
|
10
10
LL | trait Map: MapLookup<<Self as Map>::Key> {
11
-
| --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it uses `Self` as a type parameter in this
11
+
| --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...because it uses `Self` as a type parameter
Copy file name to clipboardExpand all lines: src/test/ui/issues/issue-28576.stderr
+3-3
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,16 @@ error[E0038]: the trait `Bar` cannot be made into an object
3
3
|
4
4
LL | / dyn Bar
5
5
LL | | <Assoc=()>
6
-
| |________________________^ the trait `Bar` cannot be made into an object
6
+
| |________________________^ `Bar` cannot be made into an object
7
7
|
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>
9
9
--> $DIR/issue-28576.rs:5:16
10
10
|
11
11
LL | pub trait Bar: Foo<Assoc=()> {
12
12
| --- ^^^^^^^^^^^^^
13
13
| | | |
14
-
| | | ...because it uses `Self` as a type parameter in this
15
-
| | ...because it uses `Self` as a type parameter in this
14
+
| | | ...because it uses `Self` as a type parameter
0 commit comments