Squashed 'subprojects/thiserror/' content from commit 247eab5

git-subtree-dir: subprojects/thiserror
git-subtree-split: 247eab5d79e27ad28859afdf8bc600a4242829b7
This commit is contained in:
John Turner
2025-11-15 20:18:36 +00:00
commit 6eba9cd92c
118 changed files with 6352 additions and 0 deletions

11
tests/ui/lifetime.stderr Normal file
View File

@@ -0,0 +1,11 @@
error: non-static lifetimes are not allowed in the source of an error, because std::error::Error requires the source is dyn Error + 'static
--> tests/ui/lifetime.rs:6:26
|
6 | struct Error<'a>(#[from] Inner<'a>);
| ^^^^^^^^^
error: non-static lifetimes are not allowed in the source of an error, because std::error::Error requires the source is dyn Error + 'static
--> tests/ui/lifetime.rs:15:17
|
15 | Foo(#[from] Generic<&'a str>),
| ^^^^^^^^^^^^^^^^