  To explore the origin of high-velocity gas in the direction of the Large
Magellanic Cloud (LMC) we analyze absorption lines in the ultraviolet spectrum
of a Galactic halo star that is located in front of the LMC at d=9.2 kpc
distance. We study the velocity-component structure of low and intermediate
metal ions in the spectrum of RXJ0439.8-6809, as obtained with the Cosmic
Origins Spectrograph (COS) onboard HST, and measure equivalent widths and
column densities for these ions. We supplement our COS data with a
Far-Ultraviolet Spectroscopic Explorer spectrum of the nearby LMC star Sk-69 59
and with HI 21cm data from the Leiden-Argentina-Bonn (LAB) survey. Metal
absorption towards RXJ0439.8-6809 is unambiguously detected in three different
velocity components near v_LSR=0,+60, and +150 km/s. The presence of absorption
proves that all three gas components are situated in front of the star, thus
being located in the disk and inner halo of the Milky Way. For the
high-velocity cloud (HVC) at v_LSR=+150 km/s we derive an oxygen abundance of
[O/H]=-0.63 (~0.2 solar) from the neighbouring Sk-69 59 sightline, in
accordance with previous abundance measurements for this HVC. From the observed
kinematics we infer that the HVC hardly participates in the Galactic rotation.
Our study shows that the HVC towards the LMC represents a Milky Way halo cloud
that traces low-column density gas with relatively low metallicity. It rules
out scenarios in which the HVC represents material close to the LMC that stems
from a LMC outflow.
