diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-26 10:27:50 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-26 11:45:53 +0100 |
commit | d37cf6a72e633afb10ec78bdbeec6631d601adfe (patch) | |
tree | 1db3a4b735382c65c0feed07a3328cdd059c4bd5 /ui-tests/src/bin/attr_convert_unused.stderr | |
parent | 7489a3c2246e7ea2483446dd2ed3fdbfaf462c1a (diff) |
return error for unused #[convert]s
Diffstat (limited to 'ui-tests/src/bin/attr_convert_unused.stderr')
-rw-r--r-- | ui-tests/src/bin/attr_convert_unused.stderr | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui-tests/src/bin/attr_convert_unused.stderr b/ui-tests/src/bin/attr_convert_unused.stderr new file mode 100644 index 0000000..e715236 --- /dev/null +++ b/ui-tests/src/bin/attr_convert_unused.stderr @@ -0,0 +1,5 @@ +error: unused conversion + --> src/bin/attr_convert_unused.rs:2:17 + | +2 | #[convert = |x: Foo| -> Bar {x.baz()}] + | ^^^ |