about summary refs log tree commit diff
path: root/tests/ui
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-04-12 13:13:50 +0000
committerbors <bors@rust-lang.org>2024-04-12 13:13:50 +0000
commitbd71213cf0a765705e7d72a099151bd4eb465ccb (patch)
treee28603c5d8b4d0082e162dfb53bbc8ef20b02203 /tests/ui
parent7bdae134cba57426d3c56b5de737a351762445e1 (diff)
parente256d5f2ee0d820df3e708760c76b45419fedf64 (diff)
downloadrust-bd71213cf0a765705e7d72a099151bd4eb465ccb.tar.gz
rust-bd71213cf0a765705e7d72a099151bd4eb465ccb.zip
Auto merge of #123846 - matthiaskrgr:rollup-85y28av, r=matthiaskrgr
Rollup of 3 pull requests

Successful merges:

 - #123796 (Remove unused cargo-platform dependency from tidy)
 - #123830 (Remove `From` impls for unstable types that break inference)
 - #123842 (fix typo in pin.rs)

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'tests/ui')
-rw-r--r--tests/ui/inference/untyped-primitives.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/inference/untyped-primitives.rs b/tests/ui/inference/untyped-primitives.rs
new file mode 100644
index 00000000000..8515ca79903
--- /dev/null
+++ b/tests/ui/inference/untyped-primitives.rs
@@ -0,0 +1,9 @@
+//@ check-pass
+// issue: rust-lang/rust#123824
+// This test is a sanity check and does not enforce any stable API, so may be
+// removed at a future point.
+
+fn main() {
+    let x = f32::from(3.14);
+    let y = f64::from(3.14);
+}