summaryrefslogtreecommitdiffstats
path: root/src/test/ui/trivial-bounds/trivial-bounds-leak.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/trivial-bounds/trivial-bounds-leak.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/trivial-bounds/trivial-bounds-leak.stderr')
-rw-r--r--src/test/ui/trivial-bounds/trivial-bounds-leak.stderr48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/test/ui/trivial-bounds/trivial-bounds-leak.stderr b/src/test/ui/trivial-bounds/trivial-bounds-leak.stderr
deleted file mode 100644
index 02c5d5d24..000000000
--- a/src/test/ui/trivial-bounds/trivial-bounds-leak.stderr
+++ /dev/null
@@ -1,48 +0,0 @@
-error[E0277]: the size for values of type `str` cannot be known at compilation time
- --> $DIR/trivial-bounds-leak.rs:12:25
- |
-LL | fn cant_return_str() -> str {
- | ^^^ doesn't have a size known at compile-time
- |
- = help: the trait `Sized` is not implemented for `str`
- = note: the return type of a function must have a statically known size
-
-error[E0599]: no method named `test` found for type `i32` in the current scope
- --> $DIR/trivial-bounds-leak.rs:24:10
- |
-LL | 3i32.test();
- | ^^^^ method not found in `i32`
- |
- = help: items from traits can only be used if the trait is implemented and in scope
-note: `Foo` defines an item `test`, perhaps you need to implement it
- --> $DIR/trivial-bounds-leak.rs:4:1
- |
-LL | pub trait Foo {
- | ^^^^^^^^^^^^^
-
-error[E0277]: the trait bound `i32: Foo` is not satisfied
- --> $DIR/trivial-bounds-leak.rs:25:15
- |
-LL | Foo::test(&4i32);
- | --------- ^^^^^ the trait `Foo` is not implemented for `i32`
- | |
- | required by a bound introduced by this call
-
-error[E0277]: the trait bound `i32: Foo` is not satisfied
- --> $DIR/trivial-bounds-leak.rs:26:22
- |
-LL | generic_function(5i32);
- | ---------------- ^^^^ the trait `Foo` is not implemented for `i32`
- | |
- | required by a bound introduced by this call
- |
-note: required by a bound in `generic_function`
- --> $DIR/trivial-bounds-leak.rs:29:24
- |
-LL | fn generic_function<T: Foo>(t: T) {}
- | ^^^ required by this bound in `generic_function`
-
-error: aborting due to 4 previous errors
-
-Some errors have detailed explanations: E0277, E0599.
-For more information about an error, try `rustc --explain E0277`.