diff options
Diffstat (limited to 'tests/ui/auto-traits/issue-23080.stderr')
-rw-r--r-- | tests/ui/auto-traits/issue-23080.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/auto-traits/issue-23080.stderr b/tests/ui/auto-traits/issue-23080.stderr new file mode 100644 index 000000000..c1b16b2f4 --- /dev/null +++ b/tests/ui/auto-traits/issue-23080.stderr @@ -0,0 +1,14 @@ +error[E0380]: auto traits cannot have associated items + --> $DIR/issue-23080.rs:5:8 + | +LL | unsafe auto trait Trait { + | ----- auto trait cannot have associated items +LL | fn method(&self) { + | _____- ^^^^^^ +LL | | println!("Hello"); +LL | | } + | |_____- help: remove these associated items + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0380`. |