diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.stderr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.stderr b/src/test/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.stderr new file mode 100644 index 000000000..a96f5612f --- /dev/null +++ b/src/test/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.stderr @@ -0,0 +1,15 @@ +error[E0477]: the type `&'a i32` does not fulfill the required lifetime + --> $DIR/regions-assoc-type-static-bound-in-trait-not-met.rs:10:18 + | +LL | type Value = &'a i32; + | ^^^^^^^ + | +note: type must satisfy the static lifetime as required by this binding + --> $DIR/regions-assoc-type-static-bound-in-trait-not-met.rs:5:17 + | +LL | type Value: 'static; + | ^^^^^^^ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0477`. |