Commit 0f249f5
committed
Tweak E0478
```
error[E0478]: lifetime bound not satisfied
--> $DIR/point-at-lifetime-obligation-from-trait-in-trait-object.rs:4:27
|
LL | broken: Box<dyn Any + 'a>
| --- ^^ lifetime bound not satisfied
| |
| this requires `'static`
|
note: lifetime parameter instantiated with the lifetime `'a` as defined here
--> $DIR/point-at-lifetime-obligation-from-trait-in-trait-object.rs:3:18
|
LL | struct Something<'a> {
| ^^
= note: but lifetime parameter must outlive the static lifetime
note: `'static` requirement introduced here
--> $SRC_DIR/core/src/any.rs:LL:COL
```1 parent b163ee0 commit 0f249f5
File tree
6 files changed
+39
-20
lines changed- compiler/rustc_infer/src/infer/error_reporting
- tests/ui
- error-codes
- generic-associated-types
- lifetimes
- regions
6 files changed
+39
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
2698 | 2698 | | |
2699 | 2699 | | |
2700 | 2700 | | |
2701 | | - | |
| 2701 | + | |
| 2702 | + | |
2702 | 2703 | | |
2703 | 2704 | | |
2704 | 2705 | | |
| |||
2716 | 2717 | | |
2717 | 2718 | | |
2718 | 2719 | | |
2719 | | - | |
| 2720 | + | |
2720 | 2721 | | |
2721 | 2722 | | |
2722 | 2723 | | |
| |||
2742 | 2743 | | |
2743 | 2744 | | |
2744 | 2745 | | |
2745 | | - | |
| 2746 | + | |
2746 | 2747 | | |
2747 | 2748 | | |
2748 | 2749 | | |
2749 | 2750 | | |
2750 | 2751 | | |
2751 | 2752 | | |
2752 | 2753 | | |
2753 | | - | |
2754 | | - | |
2755 | | - | |
2756 | | - | |
| 2754 | + | |
| 2755 | + | |
| 2756 | + | |
| 2757 | + | |
| 2758 | + | |
| 2759 | + | |
2757 | 2760 | | |
2758 | 2761 | | |
2759 | 2762 | | |
| |||
2763 | 2766 | | |
2764 | 2767 | | |
2765 | 2768 | | |
2766 | | - | |
| 2769 | + | |
| 2770 | + | |
2767 | 2771 | | |
2768 | 2772 | | |
2769 | 2773 | | |
| |||
2775 | 2779 | | |
2776 | 2780 | | |
2777 | 2781 | | |
2778 | | - | |
2779 | | - | |
2780 | | - | |
| 2782 | + | |
| 2783 | + | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
2781 | 2798 | | |
2782 | 2799 | | |
2783 | 2800 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments