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/rustdoc-ui/invalid_const_in_lifetime_position.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ error[E0038]: the trait `X` cannot be made into an object
98
98
LL | fn f<'a>(arg : Box<dyn X<Y<1> = &'a ()>>) {}
99
99
| ^^^^^^^^^^^^^^^^^^^^ `X` cannot be made into an object
100
100
|
101
-
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>
101
+
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#dyn-compatibility>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ `SVec` cannot be made into an object
302
302
|
303
-
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>
303
+
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#dyn-compatibility>
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 "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#dyn-compatibility>
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 "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#dyn-compatibility>
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 "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#dyn-compatibility>
Copy file name to clipboardExpand all lines: tests/ui/async-await/async-fn/dyn-pos.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0038]: the trait `AsyncFnMut` cannot be made into an object
4
4
LL | fn foo(x: &dyn AsyncFn()) {}
5
5
| ^^^^^^^^^ `AsyncFnMut` 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 "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#dyn-compatibility>
Copy file name to clipboardExpand all lines: tests/ui/async-await/in-trait/dyn-compatibility.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0038]: the trait `Foo` cannot be made into an object
4
4
LL | let x: &dyn Foo = todo!();
5
5
| ^^^^^^^^ `Foo` 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 "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#dyn-compatibility>
Copy file name to clipboardExpand all lines: tests/ui/async-await/inference_var_self_argument.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ error[E0038]: the trait `Foo` cannot be made into an object
13
13
LL | async fn foo(self: &dyn Foo) {
14
14
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Foo` cannot be made into an object
15
15
|
16
-
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>
16
+
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#dyn-compatibility>
Copy file name to clipboardExpand all lines: tests/ui/coherence/coherence-impl-trait-for-trait-dyn-compatible.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0038]: the trait `DynIncompatible` cannot be made into an object
4
4
LL | impl DynIncompatible for dyn DynIncompatible { }
5
5
| ^^^^^^^^^^^^^^^^^^^ `DynIncompatible` 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 "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#dyn-compatibility>
Copy file name to clipboardExpand all lines: tests/ui/const-generics/adt_const_params/const_param_ty_dyn_compatibility.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0038]: the trait `ConstParamTy_` cannot be made into an object
4
4
LL | fn foo(a: &dyn ConstParamTy_) {}
5
5
| ^^^^^^^^^^^^^ `ConstParamTy_` 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 "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#dyn-compatibility>
8
8
--> $SRC_DIR/core/src/cmp.rs:LL:COL
9
9
|
10
10
= note: the trait cannot be made into an object because it uses `Self` as a type parameter
@@ -19,7 +19,7 @@ error[E0038]: the trait `UnsizedConstParamTy` cannot be made into an object
19
19
LL | fn bar(a: &dyn UnsizedConstParamTy) {}
20
20
| ^^^^^^^^^^^^^^^^^^^ `UnsizedConstParamTy` 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 "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#dyn-compatibility>
23
23
--> $SRC_DIR/core/src/cmp.rs:LL:COL
24
24
|
25
25
= note: the trait cannot be made into an object because it uses `Self` as a type parameter
Copy file name to clipboardExpand all lines: tests/ui/const-generics/generic_const_exprs/dyn-compatibility-err-ret.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0038]: the trait `Foo` cannot be made into an object
4
4
LL | fn use_dyn(v: &dyn Foo) {
5
5
| ^^^^^^^ `Foo` 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 "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#dyn-compatibility>
8
8
--> $DIR/dyn-compatibility-err-ret.rs:8:8
9
9
|
10
10
LL | trait Foo {
@@ -22,7 +22,7 @@ error[E0038]: the trait `Foo` cannot be made into an object
22
22
LL | v.test();
23
23
| ^^^^^^^^ `Foo` cannot be made into an object
24
24
|
25
-
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>
25
+
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#dyn-compatibility>
Copy file name to clipboardExpand all lines: tests/ui/const-generics/generic_const_exprs/dyn-compatibility-err-where-bounds.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0038]: the trait `Foo` cannot be made into an object
4
4
LL | fn use_dyn(v: &dyn Foo) {
5
5
| ^^^^^^^ `Foo` 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 "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#dyn-compatibility>
@@ -20,7 +20,7 @@ error[E0038]: the trait `Foo` cannot be made into an object
20
20
LL | v.test();
21
21
| ^^^^^^^^ `Foo` cannot be made into an object
22
22
|
23
-
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>
23
+
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#dyn-compatibility>
Copy file name to clipboardExpand all lines: tests/ui/const-generics/generic_const_exprs/issue-102768.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ error[E0038]: the trait `X` cannot be made into an object
98
98
LL | fn f2<'a>(arg: Box<dyn X<Y<1> = &'a ()>>) {}
99
99
| ^^^^^^^^^^^^^^^^^^^^ `X` cannot be made into an object
100
100
|
101
-
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>
101
+
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#dyn-compatibility>
Copy file name to clipboardExpand all lines: tests/ui/did_you_mean/trait-object-reference-without-parens-suggestion.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ LL | let _: &Copy + 'static;
27
27
| ^^^^^ `Copy` cannot be made into an object
28
28
|
29
29
= note: the trait cannot be made into an object because it requires `Self: Sized`
30
-
= 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>
30
+
= 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#dyn-compatibility>
Copy file name to clipboardExpand all lines: tests/ui/dyn-compatibility/almost-supertrait-associated-type.stderr
+3-3
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0038]: the trait `Foo` cannot be made into an object
4
4
LL | impl<T, U> Dyn for dyn Foo<T, U> + '_ {
5
5
| ^^^^^^^^^^^^^^^^^^ `Foo` 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 "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#dyn-compatibility>
@@ -21,7 +21,7 @@ error[E0038]: the trait `Foo` cannot be made into an object
21
21
LL | (&PhantomData::<T> as &dyn Foo<T, U>).transmute(t)
22
22
| ^^^^^^^^^^^^^^ `Foo` cannot be made into an object
23
23
|
24
-
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>
24
+
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#dyn-compatibility>
@@ -38,7 +38,7 @@ error[E0038]: the trait `Foo` cannot be made into an object
38
38
LL | (&PhantomData::<T> as &dyn Foo<T, U>).transmute(t)
39
39
| ^^^^^^^^^^^^^^^^^ `Foo` cannot be made into an object
40
40
|
41
-
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>
41
+
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#dyn-compatibility>
0 commit comments