diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/auto-traits/auto-is-contextual.rs (renamed from src/test/ui/auto-traits/auto-is-contextual.rs) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/auto-trait-projection-recursion.rs (renamed from src/test/ui/auto-traits/auto-trait-projection-recursion.rs) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/auto-trait-validation.fixed (renamed from src/test/ui/auto-traits/auto-trait-validation.fixed) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/auto-trait-validation.rs (renamed from src/test/ui/auto-traits/auto-trait-validation.rs) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/auto-trait-validation.stderr (renamed from src/test/ui/auto-traits/auto-trait-validation.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/auto-traits.rs (renamed from src/test/ui/auto-traits/auto-traits.rs) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/bad-generics-on-dyn.rs (renamed from src/test/ui/auto-traits/bad-generics-on-dyn.rs) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/bad-generics-on-dyn.stderr (renamed from src/test/ui/auto-traits/bad-generics-on-dyn.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/issue-23080-2.rs (renamed from src/test/ui/auto-traits/issue-23080-2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/issue-23080-2.stderr (renamed from src/test/ui/auto-traits/issue-23080-2.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/issue-23080.rs (renamed from src/test/ui/auto-traits/issue-23080.rs) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/issue-23080.stderr (renamed from src/test/ui/auto-traits/issue-23080.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/issue-84075.rs (renamed from src/test/ui/auto-traits/issue-84075.rs) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/issue-84075.stderr (renamed from src/test/ui/auto-traits/issue-84075.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/suspicious-impls-lint.rs (renamed from src/test/ui/auto-traits/suspicious-impls-lint.rs) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/suspicious-impls-lint.stderr (renamed from src/test/ui/auto-traits/suspicious-impls-lint.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/typeck-auto-trait-no-supertraits-2.rs (renamed from src/test/ui/auto-traits/typeck-auto-trait-no-supertraits-2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr (renamed from src/test/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/typeck-auto-trait-no-supertraits.rs (renamed from src/test/ui/auto-traits/typeck-auto-trait-no-supertraits.rs) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/typeck-auto-trait-no-supertraits.stderr (renamed from src/test/ui/auto-traits/typeck-auto-trait-no-supertraits.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.rs (renamed from src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.stderr (renamed from src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/typeck-default-trait-impl-constituent-types.rs (renamed from src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types.rs) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/typeck-default-trait-impl-constituent-types.stderr (renamed from src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/typeck-default-trait-impl-negation.rs (renamed from src/test/ui/auto-traits/typeck-default-trait-impl-negation.rs) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/typeck-default-trait-impl-negation.stderr (renamed from src/test/ui/auto-traits/typeck-default-trait-impl-negation.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/typeck-default-trait-impl-precedence.rs (renamed from src/test/ui/auto-traits/typeck-default-trait-impl-precedence.rs) | 0 | ||||
-rw-r--r-- | tests/ui/auto-traits/typeck-default-trait-impl-precedence.stderr (renamed from src/test/ui/auto-traits/typeck-default-trait-impl-precedence.stderr) | 10 |
28 files changed, 8 insertions, 2 deletions
diff --git a/src/test/ui/auto-traits/auto-is-contextual.rs b/tests/ui/auto-traits/auto-is-contextual.rs index a2ddd5374..a2ddd5374 100644 --- a/src/test/ui/auto-traits/auto-is-contextual.rs +++ b/tests/ui/auto-traits/auto-is-contextual.rs diff --git a/src/test/ui/auto-traits/auto-trait-projection-recursion.rs b/tests/ui/auto-traits/auto-trait-projection-recursion.rs index a36f26f02..a36f26f02 100644 --- a/src/test/ui/auto-traits/auto-trait-projection-recursion.rs +++ b/tests/ui/auto-traits/auto-trait-projection-recursion.rs diff --git a/src/test/ui/auto-traits/auto-trait-validation.fixed b/tests/ui/auto-traits/auto-trait-validation.fixed index da878ac62..da878ac62 100644 --- a/src/test/ui/auto-traits/auto-trait-validation.fixed +++ b/tests/ui/auto-traits/auto-trait-validation.fixed diff --git a/src/test/ui/auto-traits/auto-trait-validation.rs b/tests/ui/auto-traits/auto-trait-validation.rs index d43055e27..d43055e27 100644 --- a/src/test/ui/auto-traits/auto-trait-validation.rs +++ b/tests/ui/auto-traits/auto-trait-validation.rs diff --git a/src/test/ui/auto-traits/auto-trait-validation.stderr b/tests/ui/auto-traits/auto-trait-validation.stderr index 2c380e5b0..2c380e5b0 100644 --- a/src/test/ui/auto-traits/auto-trait-validation.stderr +++ b/tests/ui/auto-traits/auto-trait-validation.stderr diff --git a/src/test/ui/auto-traits/auto-traits.rs b/tests/ui/auto-traits/auto-traits.rs index 7b52d9c17..7b52d9c17 100644 --- a/src/test/ui/auto-traits/auto-traits.rs +++ b/tests/ui/auto-traits/auto-traits.rs diff --git a/src/test/ui/auto-traits/bad-generics-on-dyn.rs b/tests/ui/auto-traits/bad-generics-on-dyn.rs index 3f8ac14c7..3f8ac14c7 100644 --- a/src/test/ui/auto-traits/bad-generics-on-dyn.rs +++ b/tests/ui/auto-traits/bad-generics-on-dyn.rs diff --git a/src/test/ui/auto-traits/bad-generics-on-dyn.stderr b/tests/ui/auto-traits/bad-generics-on-dyn.stderr index ade69ced6..ade69ced6 100644 --- a/src/test/ui/auto-traits/bad-generics-on-dyn.stderr +++ b/tests/ui/auto-traits/bad-generics-on-dyn.stderr diff --git a/src/test/ui/auto-traits/issue-23080-2.rs b/tests/ui/auto-traits/issue-23080-2.rs index cb4cf6de1..cb4cf6de1 100644 --- a/src/test/ui/auto-traits/issue-23080-2.rs +++ b/tests/ui/auto-traits/issue-23080-2.rs diff --git a/src/test/ui/auto-traits/issue-23080-2.stderr b/tests/ui/auto-traits/issue-23080-2.stderr index 267a712f6..267a712f6 100644 --- a/src/test/ui/auto-traits/issue-23080-2.stderr +++ b/tests/ui/auto-traits/issue-23080-2.stderr diff --git a/src/test/ui/auto-traits/issue-23080.rs b/tests/ui/auto-traits/issue-23080.rs index 84e2ce66f..84e2ce66f 100644 --- a/src/test/ui/auto-traits/issue-23080.rs +++ b/tests/ui/auto-traits/issue-23080.rs diff --git a/src/test/ui/auto-traits/issue-23080.stderr b/tests/ui/auto-traits/issue-23080.stderr index c1b16b2f4..c1b16b2f4 100644 --- a/src/test/ui/auto-traits/issue-23080.stderr +++ b/tests/ui/auto-traits/issue-23080.stderr diff --git a/src/test/ui/auto-traits/issue-84075.rs b/tests/ui/auto-traits/issue-84075.rs index a6afe24ea..a6afe24ea 100644 --- a/src/test/ui/auto-traits/issue-84075.rs +++ b/tests/ui/auto-traits/issue-84075.rs diff --git a/src/test/ui/auto-traits/issue-84075.stderr b/tests/ui/auto-traits/issue-84075.stderr index 02dca598e..02dca598e 100644 --- a/src/test/ui/auto-traits/issue-84075.stderr +++ b/tests/ui/auto-traits/issue-84075.stderr diff --git a/src/test/ui/auto-traits/suspicious-impls-lint.rs b/tests/ui/auto-traits/suspicious-impls-lint.rs index 7712e84f4..7712e84f4 100644 --- a/src/test/ui/auto-traits/suspicious-impls-lint.rs +++ b/tests/ui/auto-traits/suspicious-impls-lint.rs diff --git a/src/test/ui/auto-traits/suspicious-impls-lint.stderr b/tests/ui/auto-traits/suspicious-impls-lint.stderr index 9cd4e79f8..9cd4e79f8 100644 --- a/src/test/ui/auto-traits/suspicious-impls-lint.stderr +++ b/tests/ui/auto-traits/suspicious-impls-lint.stderr diff --git a/src/test/ui/auto-traits/typeck-auto-trait-no-supertraits-2.rs b/tests/ui/auto-traits/typeck-auto-trait-no-supertraits-2.rs index 98359ef51..98359ef51 100644 --- a/src/test/ui/auto-traits/typeck-auto-trait-no-supertraits-2.rs +++ b/tests/ui/auto-traits/typeck-auto-trait-no-supertraits-2.rs diff --git a/src/test/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr b/tests/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr index 4827916fa..4827916fa 100644 --- a/src/test/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr +++ b/tests/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr diff --git a/src/test/ui/auto-traits/typeck-auto-trait-no-supertraits.rs b/tests/ui/auto-traits/typeck-auto-trait-no-supertraits.rs index 2a76893fe..2a76893fe 100644 --- a/src/test/ui/auto-traits/typeck-auto-trait-no-supertraits.rs +++ b/tests/ui/auto-traits/typeck-auto-trait-no-supertraits.rs diff --git a/src/test/ui/auto-traits/typeck-auto-trait-no-supertraits.stderr b/tests/ui/auto-traits/typeck-auto-trait-no-supertraits.stderr index d7716f4b6..d7716f4b6 100644 --- a/src/test/ui/auto-traits/typeck-auto-trait-no-supertraits.stderr +++ b/tests/ui/auto-traits/typeck-auto-trait-no-supertraits.stderr diff --git a/src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.rs b/tests/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.rs index f2fb67f11..f2fb67f11 100644 --- a/src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.rs +++ b/tests/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.rs diff --git a/src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.stderr b/tests/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.stderr index 0c4970a72..0c4970a72 100644 --- a/src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.stderr +++ b/tests/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.stderr diff --git a/src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types.rs b/tests/ui/auto-traits/typeck-default-trait-impl-constituent-types.rs index 73ff46d05..73ff46d05 100644 --- a/src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types.rs +++ b/tests/ui/auto-traits/typeck-default-trait-impl-constituent-types.rs diff --git a/src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types.stderr b/tests/ui/auto-traits/typeck-default-trait-impl-constituent-types.stderr index c575c485a..c575c485a 100644 --- a/src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types.stderr +++ b/tests/ui/auto-traits/typeck-default-trait-impl-constituent-types.stderr diff --git a/src/test/ui/auto-traits/typeck-default-trait-impl-negation.rs b/tests/ui/auto-traits/typeck-default-trait-impl-negation.rs index f7f56f97f..f7f56f97f 100644 --- a/src/test/ui/auto-traits/typeck-default-trait-impl-negation.rs +++ b/tests/ui/auto-traits/typeck-default-trait-impl-negation.rs diff --git a/src/test/ui/auto-traits/typeck-default-trait-impl-negation.stderr b/tests/ui/auto-traits/typeck-default-trait-impl-negation.stderr index fa8dd41da..fa8dd41da 100644 --- a/src/test/ui/auto-traits/typeck-default-trait-impl-negation.stderr +++ b/tests/ui/auto-traits/typeck-default-trait-impl-negation.stderr diff --git a/src/test/ui/auto-traits/typeck-default-trait-impl-precedence.rs b/tests/ui/auto-traits/typeck-default-trait-impl-precedence.rs index 2bbe82270..2bbe82270 100644 --- a/src/test/ui/auto-traits/typeck-default-trait-impl-precedence.rs +++ b/tests/ui/auto-traits/typeck-default-trait-impl-precedence.rs diff --git a/src/test/ui/auto-traits/typeck-default-trait-impl-precedence.stderr b/tests/ui/auto-traits/typeck-default-trait-impl-precedence.stderr index ce7095664..bd7aaf6fb 100644 --- a/src/test/ui/auto-traits/typeck-default-trait-impl-precedence.stderr +++ b/tests/ui/auto-traits/typeck-default-trait-impl-precedence.stderr @@ -4,17 +4,23 @@ error[E0277]: the trait bound `u32: Signed` is not satisfied LL | is_defaulted::<&'static u32>(); | ^^^^^^^^^^^^ the trait `Signed` is not implemented for `u32` | - = help: the trait `Signed` is implemented for `i32` note: required for `&'static u32` to implement `Defaulted` --> $DIR/typeck-default-trait-impl-precedence.rs:10:19 | LL | impl<'a,T:Signed> Defaulted for &'a T { } - | ^^^^^^^^^ ^^^^^ + | ------ ^^^^^^^^^ ^^^^^ + | | + | unsatisfied trait bound introduced here note: required by a bound in `is_defaulted` --> $DIR/typeck-default-trait-impl-precedence.rs:12:19 | LL | fn is_defaulted<T:Defaulted>() { } | ^^^^^^^^^ required by this bound in `is_defaulted` +help: consider removing the leading `&`-reference + | +LL - is_defaulted::<&'static u32>(); +LL + is_defaulted::<u32>(); + | error: aborting due to previous error |