diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2020-07-22 16:34:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-22 16:34:36 -0700 |
| commit | fe9babbaede1643ddc10cd34140a58d0107db1ec (patch) | |
| tree | 6f7d2211c6282f29b02c132e30a59dee472a5382 /src/librustc_error_codes/error_codes.rs | |
| parent | bbebe7351fcd29af1eb9a35e315369b15887ea09 (diff) | |
| parent | 889a4d9a0baf06497106eb705143e379c180bd70 (diff) | |
| download | rust-fe9babbaede1643ddc10cd34140a58d0107db1ec.tar.gz rust-fe9babbaede1643ddc10cd34140a58d0107db1ec.zip | |
Rollup merge of #73783 - estebank:impl-dyn-trait-static-lifetime, r=nikomatsakis
Detect when `'static` obligation might come from an `impl` Partly address #71341.
Diffstat (limited to 'src/librustc_error_codes/error_codes.rs')
| -rw-r--r-- | src/librustc_error_codes/error_codes.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_error_codes/error_codes.rs b/src/librustc_error_codes/error_codes.rs index 279c65ce03d..72302962d86 100644 --- a/src/librustc_error_codes/error_codes.rs +++ b/src/librustc_error_codes/error_codes.rs @@ -633,4 +633,5 @@ E0771: include_str!("./error_codes/E0771.md"), E0755, // `#[ffi_pure]` is only allowed on foreign functions E0756, // `#[ffi_const]` is only allowed on foreign functions E0757, // `#[ffi_const]` functions cannot be `#[ffi_pure]` + E0772, // `'static' obligation coming from `impl dyn Trait {}` or `impl Foo for dyn Bar {}`. } |
